Use a FlexColorScheme by default

My custom color scheme is breaking in many places and showing blue text.
For now lets use this color scheme, though this breaks stuff in many
places as even the alignment changes.

However, I needed to fix all of this anyway, so I may as well start.
This commit is contained in:
Vishesh Handa
2021-05-07 10:50:44 +02:00
parent ee2f0e85aa
commit 978d8b0a0c
3 changed files with 10 additions and 1 deletions

View File

@ -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<JournalApp> {
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(),

View File

@ -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

View File

@ -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: