Skip to content

Commit

Permalink
Merge pull request #93 from HoLuLuLu/Adjust-dark-theme
Browse files Browse the repository at this point in the history
Adjust dark theme to match light theme
  • Loading branch information
hughesjs authored Sep 27, 2024
2 parents 70637f1 + 75a3c75 commit 61927a0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import 'package:fitness_machine/bootstrap.dart';
import 'package:fitness_machine/layouts/main_layout.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:get_it/get_it.dart';
import 'package:logger/logger.dart';
import 'package:fitness_machine/bootstrap.dart';
import 'package:wakelock_plus/wakelock_plus.dart';
import 'package:fitness_machine/layouts/main_layout.dart';

Future<void> main() async {
final MyApp app = await Bootstrap.bootstrap();
Expand All @@ -28,7 +28,11 @@ class MyApp extends StatelessWidget {
useMaterial3: true,
colorScheme: ColorScheme.fromSeed(seedColor: Colors.blue),
),
darkTheme: ThemeData.dark(), // <---- This needs some version of the fromSeed()
darkTheme: ThemeData(
useMaterial3: true,
colorScheme: ColorScheme.fromSeed(
seedColor: Colors.blue, brightness: Brightness.dark),
),
themeMode: ThemeMode.system,
home: mainLayout,
);
Expand Down

0 comments on commit 61927a0

Please sign in to comment.