diff --git a/lib/constants/theme.dart b/lib/constants/theme.dart index c794f19..3964b2d 100644 --- a/lib/constants/theme.dart +++ b/lib/constants/theme.dart @@ -60,8 +60,10 @@ ThemeData lightTheme() => ThemeData( hintStyle: const TextStyle(color: Colors.grey), ), cardColor: Colors.grey[200], - colorScheme: - ColorScheme.fromSwatch().copyWith(secondary: const Color(0xff6f85d5)), + colorScheme: ColorScheme.fromSwatch().copyWith( + secondary: const Color(0xff6f85d5), + brightness: Brightness.light, + ), ); ThemeData darkTheme() => ThemeData( @@ -123,5 +125,8 @@ ThemeData darkTheme() => ThemeData( const Color(0xff3C387B).withOpacity(0.5), ), ), - colorScheme: ColorScheme.fromSwatch().copyWith(secondary: Colors.white), + colorScheme: ColorScheme.fromSwatch().copyWith( + secondary: Colors.white, + brightness: Brightness.dark, + ), ); diff --git a/pubspec.lock b/pubspec.lock index 25e7ee4..bf29fbc 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -28,7 +28,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.8.1" + version: "2.8.2" boolean_selector: dependency: transitive description: @@ -42,7 +42,7 @@ packages: name: characters url: "https://pub.dartlang.org" source: hosted - version: "1.1.0" + version: "1.2.0" charcode: dependency: transitive description: @@ -251,7 +251,7 @@ packages: name: matcher url: "https://pub.dartlang.org" source: hosted - version: "0.12.10" + version: "0.12.11" meta: dependency: transitive description: @@ -494,7 +494,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.4.2" + version: "0.4.3" timezone: dependency: transitive description: