- Updated AppThemeMode enum to include icons and added fromValue method for easier theme retrieval. - Modified ThemeBloc to manage currentTheme instead of themeMode. - Enhanced ThemeState to reflect currentTheme and updated copyWith method. - Added ThemeSettingsView for user-friendly theme selection in settings. - Improved fluxLightTheme and fluxDarkTheme with new listTileTheme and color settings. - Updated settings view to navigate to ThemeSettingsView. - Added entitlements for network client permissions in Debug and Release profiles. - Introduced Podfile.lock for dependency management. - Added devtools_options.yaml for Dart & Flutter DevTools configuration.
15 lines
342 B
Dart
15 lines
342 B
Dart
part of 'theme_bloc.dart';
|
|
|
|
class ThemeState extends Equatable {
|
|
const ThemeState({required this.currentTheme});
|
|
|
|
final AppThemeMode currentTheme;
|
|
|
|
@override
|
|
List<Object?> get props => [currentTheme];
|
|
|
|
ThemeState copyWith({AppThemeMode? currentTheme}) {
|
|
return ThemeState(currentTheme: currentTheme ?? this.currentTheme);
|
|
}
|
|
}
|