File tree 1 file changed +4
-0
lines changed 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -709,14 +709,17 @@ class WebFViewController implements WidgetsBindingObserver {
709
709
switch (state) {
710
710
case AppLifecycleState .resumed:
711
711
document.visibilityChange (VisibilityState .visible);
712
+ rootController.resume ();
712
713
break ;
713
714
case AppLifecycleState .hidden:
714
715
case AppLifecycleState .paused:
715
716
document.visibilityChange (VisibilityState .hidden);
717
+ rootController.pause ();
716
718
break ;
717
719
case AppLifecycleState .inactive:
718
720
break ;
719
721
case AppLifecycleState .detached:
722
+ rootController.pause ();
720
723
break ;
721
724
}
722
725
}
@@ -1344,6 +1347,7 @@ class WebFController {
1344
1347
module.resumeAnimationFrame ();
1345
1348
view.resumeAnimationTimeline ();
1346
1349
view.document.reactiveWidgetElements ();
1350
+ SchedulerBinding .instance.scheduleFrame ();
1347
1351
}
1348
1352
1349
1353
bool _disposed = false ;
You can’t perform that action at this time.
0 commit comments