File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 11import 'dart:async' ;
22
33import 'package:flutter/foundation.dart' ;
4+ import 'package:flutter/gestures.dart' ;
45import 'package:flutter/material.dart' ;
56import 'package:gsy_github_app_flutter/app.dart' ;
67import 'package:gsy_github_app_flutter/env/config_wrapper.dart' ;
@@ -10,6 +11,8 @@ import 'package:gsy_github_app_flutter/page/error_page.dart';
1011import 'env/dev.dart' ;
1112
1213void main () {
14+ ///屏幕刷新率和显示率不一致时的优化
15+ GestureBinding .instance? .resamplingEnabled = true ;
1316 runZonedGuarded (() {
1417 ErrorWidget .builder = (FlutterErrorDetails details) {
1518 Zone .current.handleUncaughtError (details.exception, details.stack! );
Original file line number Diff line number Diff line change 11import 'dart:async' ;
22
33import 'package:flutter/foundation.dart' ;
4+ import 'package:flutter/gestures.dart' ;
45import 'package:flutter/material.dart' ;
56import 'package:gsy_github_app_flutter/app.dart' ;
67import 'package:gsy_github_app_flutter/env/config_wrapper.dart' ;
@@ -10,6 +11,8 @@ import 'package:gsy_github_app_flutter/page/error_page.dart';
1011import 'env/prod.dart' ;
1112
1213void main () {
14+ ///屏幕刷新率和显示率不一致时的优化
15+ GestureBinding .instance? .resamplingEnabled = true ;
1316 runZonedGuarded (() {
1417 ErrorWidget .builder = (FlutterErrorDetails details) {
1518 Zone .current.handleUncaughtError (details.exception, details.stack! );
You can’t perform that action at this time.
0 commit comments