Fix handling of AppLifecycleState.hidden (#127987)
## Description This fixes the parsing of `AppLifecycleState` in the services binding so that it knows what it is. ## Related Issues - Fixes https://github.com/flutter/flutter/issues/127974 ## Tests - Added a test that causes parsing of all the different app lifecycle states.
This commit is contained in:
@@ -1150,6 +1150,8 @@ abstract class TestWidgetsFlutterBinding extends BindingBase
|
||||
keyEventManager.clearState();
|
||||
// ignore: invalid_use_of_visible_for_testing_member
|
||||
RendererBinding.instance.initMouseTracker();
|
||||
// ignore: invalid_use_of_visible_for_testing_member
|
||||
ServicesBinding.instance.resetLifecycleState();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user