mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-26 16:46:51 +08:00
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:
@ -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(),
|
||||
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
Reference in New Issue
Block a user