fix: check android platform for high refresh-rate

This commit is contained in:
Kingkor Roy Tirtho 2023-08-02 10:29:46 +06:00 committed by GitHub
parent 923c76adc3
commit c8ba8c1d8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,7 +87,9 @@ Future<void> main(List<String> rawArgs) async {
MediaKit.ensureInitialized(); MediaKit.ensureInitialized();
// force High Refresh Rate on some Android devices (like One Plus) // force High Refresh Rate on some Android devices (like One Plus)
await FlutterDisplayMode.setHighRefreshRate(); if (DesktopTools.platform.isAndroid) {
await FlutterDisplayMode.setHighRefreshRate();
}
await DesktopTools.ensureInitialized( await DesktopTools.ensureInitialized(
DesktopWindowOptions( DesktopWindowOptions(