2021-08-08 23:16:54 +02:00
|
|
|
part of 'theme_bloc.dart';
|
|
|
|
|
|
|
|
@immutable
|
|
|
|
abstract class ThemeState {
|
2021-12-06 20:26:52 +01:00
|
|
|
const ThemeState();
|
2021-08-08 23:16:54 +02:00
|
|
|
|
|
|
|
AppTheme get theme;
|
|
|
|
}
|
|
|
|
|
|
|
|
class LightThemeState extends ThemeState {
|
2021-12-06 20:26:52 +01:00
|
|
|
const LightThemeState();
|
2021-08-08 23:16:54 +02:00
|
|
|
|
2021-12-01 23:09:53 +01:00
|
|
|
@override
|
2022-01-17 14:50:01 +01:00
|
|
|
AppTheme get theme => const LightTheme();
|
2021-08-08 23:16:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
class DarkThemeState extends ThemeState {
|
2021-12-06 20:26:52 +01:00
|
|
|
const DarkThemeState();
|
2021-08-08 23:16:54 +02:00
|
|
|
|
2021-12-01 23:09:53 +01:00
|
|
|
@override
|
2022-01-17 14:50:01 +01:00
|
|
|
AppTheme get theme => const DarkTheme();
|
2021-12-01 23:09:53 +01:00
|
|
|
}
|