change colors
This commit is contained in:
parent
6e61dd6a31
commit
ad30e18054
@ -3,6 +3,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:fnotes/database.dart';
|
||||
import 'package:fnotes/persisted_brightness.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
|
||||
class PersistedThemeBloc extends Bloc<ThemeEvent, ThemeState> {
|
||||
PersistedThemeBloc(Brightness brightness)
|
||||
@ -77,9 +78,10 @@ class ThemeState {
|
||||
|
||||
factory ThemeState.withBrightness(Brightness brightness) {
|
||||
return ThemeState(
|
||||
theme: ThemeData(
|
||||
colorScheme: ColorScheme.fromSeed(
|
||||
seedColor: Colors.lightBlue, brightness: brightness),
|
||||
));
|
||||
theme: ThemeData(
|
||||
colorScheme: ColorScheme.fromSeed(
|
||||
seedColor: Colors.deepPurpleAccent, brightness: brightness),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -263,10 +263,10 @@ packages:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: flutter_bloc
|
||||
sha256: f0ecf6e6eb955193ca60af2d5ca39565a86b8a142452c5b24d96fb477428f4d2
|
||||
sha256: b594505eac31a0518bdcb4b5b79573b8d9117b193cc80cc12e17d639b10aa27a
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "8.1.5"
|
||||
version: "8.1.6"
|
||||
flutter_lints:
|
||||
dependency: "direct dev"
|
||||
description:
|
||||
@ -505,10 +505,10 @@ packages:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: platform
|
||||
sha256: "12220bb4b65720483f8fa9450b4332347737cf8213dd2840d8b2c823e47243ec"
|
||||
sha256: "9b71283fc13df574056616011fb138fd3b793ea47cc509c189a6c3fa5f8a1a65"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "3.1.4"
|
||||
version: "3.1.5"
|
||||
plugin_platform_interface:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
Loading…
Reference in New Issue
Block a user