fix:播放异常黑屏等

This commit is contained in:
orz12
2024-03-13 18:38:09 +08:00
parent 766b85cff1
commit cc6da716bc
9 changed files with 50 additions and 35 deletions

View File

@@ -123,7 +123,9 @@ class MyApp extends StatelessWidget {
DisplayMode preferred = modes.toList().firstWhere((el) => el == f);
FlutterDisplayMode.setPreferredMode(preferred);
});
} catch (_) {}
} catch (e) {
SmartDialog.showToast('设置帧率失败:$e', displayTime: const Duration(milliseconds: 500));
}
}
return DynamicColorBuilder(