add setting for readability

This commit is contained in:
Fabian Freund
2024-07-22 09:02:50 +02:00
parent 987bf00b74
commit 4b23ae3dba
8 changed files with 76 additions and 14 deletions
@@ -19,6 +19,7 @@ class Settings with FastEquatable {
final ThemeMode themeMode;
final KagiTool? quickAction;
final bool quickActionVoiceInput;
final bool enableReadability;
Settings({
required this.kagiSession,
@@ -32,6 +33,7 @@ class Settings with FastEquatable {
required this.themeMode,
required this.quickAction,
required this.quickActionVoiceInput,
required this.enableReadability,
});
Settings.withDefaults({
@@ -46,6 +48,7 @@ class Settings with FastEquatable {
ThemeMode? themeMode,
this.quickAction,
bool? quickActionVoiceInput,
bool? enableReadability,
}) : showEarlyAccessFeatures = showEarlyAccessFeatures ?? true,
incognitoMode = incognitoMode ?? true,
enableJavascript = enableJavascript ?? true,
@@ -54,7 +57,8 @@ class Settings with FastEquatable {
blockHttpProtocol = blockHttpProtocol ?? false,
enableHostList = enableHostList ?? {HostSource.stevenBlackUnified},
themeMode = themeMode ?? ThemeMode.dark,
quickActionVoiceInput = quickActionVoiceInput ?? false;
quickActionVoiceInput = quickActionVoiceInput ?? false,
enableReadability = enableReadability ?? true;
@override
bool get cacheHash => true;
@@ -72,5 +76,6 @@ class Settings with FastEquatable {
themeMode,
quickAction,
quickActionVoiceInput,
enableReadability,
];
}