diff --git a/lib/app.dart b/lib/app.dart index 79c50936..dbc3f61d 100644 --- a/lib/app.dart +++ b/lib/app.dart @@ -9,6 +9,7 @@ import 'package:flutter/material.dart'; import 'package:device_info/device_info.dart'; import 'package:easy_localization/easy_localization.dart'; import 'package:easy_localization_loader/easy_localization_loader.dart'; +import 'package:flex_color_scheme/flex_color_scheme.dart'; import 'package:flutter_runtime_env/flutter_runtime_env.dart'; import 'package:package_info/package_info.dart'; import 'package:path_provider/path_provider.dart'; @@ -302,7 +303,7 @@ class _JournalAppState extends State { supportedLocales: EasyLocalization.of(context).supportedLocales, locale: EasyLocalization.of(context).locale, - theme: Themes.light, + theme: FlexColorScheme.light(scheme: FlexScheme.green).toTheme, darkTheme: Themes.dark, themeMode: settings.theme.toThemeMode(), diff --git a/pubspec.lock b/pubspec.lock index 76b6fa4c..120f3e11 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -446,6 +446,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.0.0" + flex_color_scheme: + dependency: "direct main" + description: + name: flex_color_scheme + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.1" flutter: dependency: "direct main" description: flutter diff --git a/pubspec.yaml b/pubspec.yaml index 6586bb1a..570a8aae 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -79,6 +79,7 @@ dependencies: yaml: ^3.1.0 yaml_serializer: ^0.0.11 collection: ^1.15.0-nullsafety.4 + flex_color_scheme: ^2.1.1 dev_dependencies: #flutter_driver: