summaryrefslogtreecommitdiff
path: root/lib/main.dart
diff options
context:
space:
mode:
Diffstat (limited to 'lib/main.dart')
-rw-r--r--lib/main.dart35
1 files changed, 33 insertions, 2 deletions
diff --git a/lib/main.dart b/lib/main.dart
index e19de54..39a7f05 100644
--- a/lib/main.dart
+++ b/lib/main.dart
@@ -16,9 +16,40 @@ class MiniGolfScoreApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
- return const MaterialApp(
+ return MaterialApp(
+ theme: ThemeData(
+ brightness: Brightness.light,
+ primarySwatch: Colors.blue, // Example primary color for light theme
+ scaffoldBackgroundColor: Colors.white, // Light mode background color
+ // Define other theme properties for light mode
+ elevatedButtonTheme: ElevatedButtonThemeData(
+ style: ElevatedButton.styleFrom(
+ backgroundColor: Colors.blue, // Button color for light mode
+ foregroundColor: Colors.black, // Text color for light mode
+ ),
+ ),
+ ),
+ darkTheme: ThemeData(
+ brightness: Brightness.dark,
+ primarySwatch: Colors.blueGrey, // Example primary color for dark theme
+ scaffoldBackgroundColor: Colors.black, // Dark mode background color
+ textTheme: const TextTheme(
+ bodyLarge: TextStyle(color: Colors.white),
+ bodyMedium: TextStyle(color: Colors.white),
+ bodySmall: TextStyle(color: Colors.white),
+ // Add other text styles as needed
+ ),
+ // Define other theme properties for dark mode
+ elevatedButtonTheme: ElevatedButtonThemeData(
+ style: ElevatedButton.styleFrom(
+ backgroundColor: Colors.blueGrey, // Button color for dark mode
+ foregroundColor: Colors.white, // Text color for dark mode
+ ),
+ ),
+ ),
+ themeMode: ThemeMode.system, // Use the system theme setting (light/dark)
title: 'Mini Golf Score App',
- home: MainMenu(),
+ home: const MainMenu(),
);
}
}