add setting for readability
This commit is contained in:
1 parent
987bf00b74
commit
4b23ae3dba
8 files changed
+76
-14
No files matched your search
@@ -191,6 +191,13 @@ class KagiScreen extends HookConsumerWidget {
|
||||
readerabilityControllerProvider(controller),
|
||||
);
|
||||
|
||||
final enableReadability = ref.watch(
|
||||
settingsRepositoryProvider.select(
|
||||
(value) => (value.valueOrNull ?? Settings.withDefaults())
|
||||
.enableReadability,
|
||||
),
|
||||
);
|
||||
|
||||
final isReaderable = useValueListenable(
|
||||
activeWebView.isReaderable,
|
||||
);
|
||||
@@ -213,7 +220,8 @@ class KagiScreen extends HookConsumerWidget {
|
||||
);
|
||||
|
||||
return Visibility(
|
||||
visible: isReaderable == true || readerableApplied,
|
||||
visible: enableReadability &&
|
||||
(isReaderable == true || readerableApplied),
|
||||
child: InkWell(
|
||||
onTap: readerabilityState.isLoading
|
||||
? null
|
||||
|
||||
Reference in new issue
Block a user