Skip to content

Commit

Permalink
add dark mode support
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed Sep 9, 2024
1 parent df64cf0 commit 02bc238
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@ class MyApp extends StatelessWidget {
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
theme: ThemeData.light(),
darkTheme: ThemeData.dark(),
home: const MyHomePage(title: 'Flutter Demo Home Page'),
);
}
Expand Down

0 comments on commit 02bc238

Please sign in to comment.