Hide stream quality options on iOS

Twitch doesn't expose stream quality options on web iOS :(
This commit is contained in:
Tommy Chow 2023-11-26 04:33:15 -05:00
parent 69b01f8cc7
commit 0b0db46507
2 changed files with 14 additions and 8 deletions

View file

@ -1,3 +1,5 @@
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_mobx/flutter_mobx.dart';
@ -48,7 +50,8 @@ class VideoOverlay extends StatelessWidget {
);
final videoSettingsButton = IconButton(
icon: const Icon(Icons.settings_rounded),
icon: const Icon(Icons.settings),
color: Colors.white,
onPressed: () {
videoStore.updateStreamQualities();
showModalBottomSheet(
@ -194,7 +197,7 @@ class VideoOverlay extends StatelessWidget {
if (videoStore.settingsStore.fullScreen &&
orientation == Orientation.landscape)
chatOverlayButton,
videoSettingsButton,
if (!Platform.isIOS) videoSettingsButton,
],
),
Center(

View file

@ -1,3 +1,5 @@
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:flutter_mobx/flutter_mobx.dart';
import 'package:frosty/screens/settings/stores/settings_store.dart';
@ -21,12 +23,13 @@ class VideoSettings extends StatelessWidget {
value: settingsStore.showVideo,
onChanged: (newValue) => settingsStore.showVideo = newValue,
),
SettingsListSwitch(
title: 'Default to highest quality',
value: settingsStore.defaultToHighestQuality,
onChanged: (newValue) =>
settingsStore.defaultToHighestQuality = newValue,
),
if (!Platform.isIOS)
SettingsListSwitch(
title: 'Default to highest quality',
value: settingsStore.defaultToHighestQuality,
onChanged: (newValue) =>
settingsStore.defaultToHighestQuality = newValue,
),
const SectionHeader('Overlay', showDivider: true),
SettingsListSwitch(
title: 'Use custom video overlay',