Skip to content

Commit

Permalink
Bump flutter to 3.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lijy91 committed Feb 5, 2023
1 parent a729eba commit 227a799
Show file tree
Hide file tree
Showing 24 changed files with 500 additions and 268 deletions.
4 changes: 4 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
include: package:flutter_lints/flutter.yaml

# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
2 changes: 2 additions & 0 deletions dart_dependency_validator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
exclude:
- "example/**"
6 changes: 3 additions & 3 deletions example/integration_test/window_manager_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Future<void> main() async {
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
await windowManager.ensureInitialized();
await windowManager.waitUntilReadyToShow(
WindowOptions(
const WindowOptions(
size: Size(640, 480),
title: 'window_manager_test',
),
Expand All @@ -21,7 +21,7 @@ Future<void> main() async {

testWidgets('getBounds', (tester) async {
expect(await windowManager.getBounds(),
isA<Rect>().having((r) => r.size, 'size', Size(640, 480)));
isA<Rect>().having((r) => r.size, 'size', const Size(640, 480)));
});

testWidgets('isAlwaysOnBottom', (tester) async {
Expand Down Expand Up @@ -85,7 +85,7 @@ Future<void> main() async {
});

testWidgets('getSize', (tester) async {
expect(await windowManager.getSize(), Size(640, 480));
expect(await windowManager.getSize(), const Size(640, 480));
});

testWidgets('isSkipTaskbar', (tester) async {
Expand Down
10 changes: 6 additions & 4 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ void main() async {
WidgetsFlutterBinding.ensureInitialized();
await windowManager.ensureInitialized();

WindowOptions windowOptions = WindowOptions(
WindowOptions windowOptions = const WindowOptions(
size: Size(800, 600),
center: true,
backgroundColor: Colors.transparent,
Expand All @@ -22,12 +22,14 @@ void main() async {
await windowManager.focus();
});

runApp(MyApp());
runApp(const MyApp());
}

class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);

@override
_MyAppState createState() => _MyAppState();
State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
Expand Down Expand Up @@ -66,7 +68,7 @@ class _MyAppState extends State<MyApp> {
return child;
},
navigatorObservers: [BotToastNavigatorObserver()],
home: HomePage(),
home: const HomePage(),
);
}
}
Loading

0 comments on commit 227a799

Please sign in to comment.