From ba1387fdf5b6993a3549b7a8d0af03736e50f36d Mon Sep 17 00:00:00 2001 From: Bjoern Hauffe Date: Fri, 10 Feb 2023 20:47:33 +0100 Subject: [PATCH] change to platform guards --- lib/main.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 301a4a3..c9796ca 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -142,12 +142,11 @@ void main() async { appSettingsCubit.stream.listen((event) => languageHeaderInterceptor .preferredLocaleSubtag = event.preferredLocaleSubtag); -try { + +if (!Platform.isIOS) { // Temporary Fix: Can be removed if the flutter engine implements the fix itself // Activate the highest availabe refresh rate on the device await FlutterDisplayMode.setHighRefreshRate(); - } catch(e) { - print("Can't set high refresh rate"); }