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:
Greg Spencer
2023-05-31 15:03:06 -07:00
committed by GitHub
parent 5fd9ef4240
commit a257efc284
4 changed files with 22 additions and 0 deletions

View File

@@ -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();
}
}