Fixes for ios build

This commit is contained in:
Bjoern Hauffe
2023-02-10 15:03:44 +01:00
parent e65e152d44
commit 05e8c96cfe
3 changed files with 84 additions and 68 deletions

View File

@@ -141,10 +141,15 @@ void main() async {
//Update language header in interceptor on language change.
appSettingsCubit.stream.listen((event) => languageHeaderInterceptor
.preferredLocaleSubtag = event.preferredLocaleSubtag);
try {
// 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");
}
// 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();
runApp(
MultiProvider(