[auth] Set high refresh rates only on Android (#724)

This commit is contained in:
Vishnu Mohandas 2024-03-06 17:14:24 +05:30 committed by GitHub
commit 6a6cc6b2ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,3 +1,5 @@
import 'dart:io';
import 'package:adaptive_theme/adaptive_theme.dart';
import 'package:computer/computer.dart';
import "package:ente_auth/app/view/app.dart";
@ -33,7 +35,9 @@ void main() async {
WidgetsFlutterBinding.ensureInitialized();
await _runInForeground();
await _setupPrivacyScreen();
FlutterDisplayMode.setHighRefreshRate();
if (Platform.isAndroid) {
FlutterDisplayMode.setHighRefreshRate().ignore();
}
}
Future<void> _runInForeground() async {