mirror of
https://github.com/gskinnerTeam/flutter-wonderous-app.git
synced 2025-06-20 02:37:15 +08:00
Merge pull request #9 from gskinnerTeam/feature-request-max-fps
Request highest fps possible on android devices
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:flutter_displaymode/flutter_displaymode.dart';
|
||||
import 'package:wonders/common_libs.dart';
|
||||
import 'package:wonders/ui/common/utils/page_routes.dart';
|
||||
|
||||
@ -20,6 +21,9 @@ class AppLogic {
|
||||
// Default to only allowing portrait mode
|
||||
setDeviceOrientation(Axis.vertical);
|
||||
|
||||
// Try and get highest FPS possible on Android devices
|
||||
await FlutterDisplayMode.setHighRefreshRate();
|
||||
|
||||
// Localizations load
|
||||
await localeLogic.load();
|
||||
// Data load
|
||||
|
Reference in New Issue
Block a user