Skip to content

Commit

Permalink
example app dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
thomassth committed Oct 6, 2022
1 parent 0b9bc98 commit 10c8d3a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(),
themeMode: ThemeMode.system,
darkTheme: ThemeData.dark(),
routes: {
AppRoutes.calendars: (context) {
return CalendarsPage(key: Key('calendarsPage'));
Expand Down

0 comments on commit 10c8d3a

Please sign in to comment.