diff options
author | Felipe Erias <felipeerias@igalia.com> | 2021-12-01 14:00:36 +0900 |
---|---|---|
committer | Felipe Erias <felipeerias@igalia.com> | 2021-12-01 14:00:36 +0900 |
commit | df0734e99ee09feaf7da1abec2be57997e2f9f99 (patch) | |
tree | deda996aedf77aac3eb91869ecc2c657da9f5090 /lib/main.dart | |
parent | 51a805e0cf2d82795e738691dba9b3569bb9b555 (diff) |
Dark theme
Diffstat (limited to 'lib/main.dart')
-rw-r--r-- | lib/main.dart | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/main.dart b/lib/main.dart index 207ef3d..5335eda 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -13,7 +13,13 @@ class MyApp extends StatelessWidget { title: 'Flutter Homescreen', theme: ThemeData( primarySwatch: Colors.blue, + brightness: Brightness.light, ), + darkTheme: ThemeData( + brightness: Brightness.dark, + /* dark theme settings */ + ), + themeMode: ThemeMode.dark, home: Homescreen(title: 'Flutter Homescreen'), ); } |