Skip to content

Commit 227a799

Browse files
committed
Bump flutter to 3.7.1
1 parent a729eba commit 227a799

24 files changed

+500
-268
lines changed

analysis_options.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include: package:flutter_lints/flutter.yaml
2+
3+
# Additional information about this file can be found at
4+
# https://dart.dev/guides/language/analysis-options

dart_dependency_validator.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
exclude:
2+
- "example/**"

example/integration_test/window_manager_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Future<void> main() async {
99
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
1010
await windowManager.ensureInitialized();
1111
await windowManager.waitUntilReadyToShow(
12-
WindowOptions(
12+
const WindowOptions(
1313
size: Size(640, 480),
1414
title: 'window_manager_test',
1515
),
@@ -21,7 +21,7 @@ Future<void> main() async {
2121

2222
testWidgets('getBounds', (tester) async {
2323
expect(await windowManager.getBounds(),
24-
isA<Rect>().having((r) => r.size, 'size', Size(640, 480)));
24+
isA<Rect>().having((r) => r.size, 'size', const Size(640, 480)));
2525
});
2626

2727
testWidgets('isAlwaysOnBottom', (tester) async {
@@ -85,7 +85,7 @@ Future<void> main() async {
8585
});
8686

8787
testWidgets('getSize', (tester) async {
88-
expect(await windowManager.getSize(), Size(640, 480));
88+
expect(await windowManager.getSize(), const Size(640, 480));
8989
});
9090

9191
testWidgets('isSkipTaskbar', (tester) async {

example/lib/main.dart

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ void main() async {
1010
WidgetsFlutterBinding.ensureInitialized();
1111
await windowManager.ensureInitialized();
1212

13-
WindowOptions windowOptions = WindowOptions(
13+
WindowOptions windowOptions = const WindowOptions(
1414
size: Size(800, 600),
1515
center: true,
1616
backgroundColor: Colors.transparent,
@@ -22,12 +22,14 @@ void main() async {
2222
await windowManager.focus();
2323
});
2424

25-
runApp(MyApp());
25+
runApp(const MyApp());
2626
}
2727

2828
class MyApp extends StatefulWidget {
29+
const MyApp({Key? key}) : super(key: key);
30+
2931
@override
30-
_MyAppState createState() => _MyAppState();
32+
State<MyApp> createState() => _MyAppState();
3133
}
3234

3335
class _MyAppState extends State<MyApp> {
@@ -66,7 +68,7 @@ class _MyAppState extends State<MyApp> {
6668
return child;
6769
},
6870
navigatorObservers: [BotToastNavigatorObserver()],
69-
home: HomePage(),
71+
home: const HomePage(),
7072
);
7173
}
7274
}

0 commit comments

Comments
 (0)