feat(mobile): add ability to force view original videos (#15094)

This commit is contained in:
Ovidijus R 2025-01-06 22:29:47 +02:00 committed by GitHub
parent 1f0ffd634a
commit a13b7b364e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 26 additions and 3 deletions

View file

@ -15,6 +15,8 @@ class VideoViewerSettings extends HookConsumerWidget {
@override
Widget build(BuildContext context, WidgetRef ref) {
final useLoopVideo = useAppSettingsState(AppSettingsEnum.loopVideo);
final useOriginalVideo =
useAppSettingsState(AppSettingsEnum.loadOriginalVideo);
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
@ -26,6 +28,12 @@ class VideoViewerSettings extends HookConsumerWidget {
subtitle: "setting_video_viewer_looping_subtitle".tr(),
onChanged: (_) => ref.invalidate(appSettingsServiceProvider),
),
SettingsSwitchListTile(
valueNotifier: useOriginalVideo,
title: "setting_video_viewer_original_video_title".tr(),
subtitle: "setting_video_viewer_original_video_subtitle".tr(),
onChanged: (_) => ref.invalidate(appSettingsServiceProvider),
),
],
);
}