mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-03 15:26:27 +01:00
54 lines
940 B
Dart
54 lines
940 B
Dart
|
part of '../theme_settings.dart';
|
||
|
|
||
|
@genCopyWith
|
||
|
@toString
|
||
|
class _State {
|
||
|
const _State({
|
||
|
required this.isFollowSystemTheme,
|
||
|
required this.isUseBlackInDarkTheme,
|
||
|
required this.seedColor,
|
||
|
});
|
||
|
|
||
|
@override
|
||
|
String toString() => _$toString();
|
||
|
|
||
|
final bool isFollowSystemTheme;
|
||
|
final bool isUseBlackInDarkTheme;
|
||
|
final Color seedColor;
|
||
|
}
|
||
|
|
||
|
abstract class _Event {
|
||
|
const _Event();
|
||
|
}
|
||
|
|
||
|
@toString
|
||
|
class _SetFollowSystemTheme extends _Event {
|
||
|
const _SetFollowSystemTheme(this.value);
|
||
|
|
||
|
@override
|
||
|
String toString() => _$toString();
|
||
|
|
||
|
final bool value;
|
||
|
}
|
||
|
|
||
|
@toString
|
||
|
class _SetUseBlackInDarkTheme extends _Event {
|
||
|
const _SetUseBlackInDarkTheme(this.value, this.theme);
|
||
|
|
||
|
@override
|
||
|
String toString() => _$toString();
|
||
|
|
||
|
final bool value;
|
||
|
final ThemeData theme;
|
||
|
}
|
||
|
|
||
|
@toString
|
||
|
class _SetSeedColor extends _Event {
|
||
|
const _SetSeedColor(this.value);
|
||
|
|
||
|
@override
|
||
|
String toString() => _$toString();
|
||
|
|
||
|
final Color value;
|
||
|
}
|