Skip to content

Commit d4b3cb2

Browse files
Examples: use const modifier for MyApp.
1 parent 5226820 commit d4b3cb2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

objectbox/example/flutter/objectbox_demo/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Future<void> main() async {
1717

1818
objectbox = await ObjectBox.create();
1919

20-
runApp(MyApp());
20+
runApp(const MyApp());
2121
}
2222

2323
class MyApp extends StatelessWidget {

objectbox/example/flutter/objectbox_demo_sync/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Future<void> main() async {
1717

1818
objectbox = await ObjectBox.create();
1919

20-
runApp(MyApp());
20+
runApp(const MyApp());
2121
}
2222

2323
class MyApp extends StatelessWidget {

0 commit comments

Comments
 (0)