Theme configuration

This commit is contained in:
Juan Gilsanz Polo
2024-02-23 01:26:22 +01:00
parent 57af5e926e
commit e21546693a
32 changed files with 1053 additions and 45 deletions

View File

@@ -1,12 +1,15 @@
import 'package:linkdy/models/server_instance.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:linkdy/constants/enums.dart';
class AppStatus {
AppStatus();
class AppStatusModel {
SelectedTheme selectedTheme;
bool supportsDynamicTheme;
bool useDynamicTheme;
int selectedColor;
AppStatus copyWith({
SharedPreferences? sharedPreferences,
ServerInstance? serverInstance,
}) =>
AppStatus();
AppStatusModel({
this.selectedTheme = SelectedTheme.system,
this.supportsDynamicTheme = false,
this.useDynamicTheme = true,
this.selectedColor = 0,
});
}