Skip to content

Commit 8408d16

Browse files
committed
enable dark theme
1 parent b7a6cdb commit 8408d16

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

example/lib/main.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ class MyApp extends StatelessWidget {
2020

2121
return MaterialApp(
2222
title: _title,
23-
theme: ThemeData(primarySwatch: Colors.blue),
23+
theme: ThemeData.light(),
24+
darkTheme: ThemeData.dark(),
2425
home: MyHomePage(
2526
title: _title,
2627
platform: platform,

0 commit comments

Comments
 (0)