flutter/examples/api/test
Greg Spencer a280346193
Add AppLifecycleListener, with support for application exit handling (#123274)
## Description

This adds `AppLifecycleListener`, a class for listening to changes in the application lifecycle, and responding to requests to exit the application.

It depends on changes in the Engine that add new lifecycle states: https://github.com/flutter/engine/pull/42418

Here's a diagram for the lifecycle states. I'll add a similar diagram to the documentation for these classes.

![Application Lifecycle Diagram](https://github.com/flutter/flutter/assets/8867023/f6937002-cb93-4ab9-a221-25de2c45cf0e)

## Related Issues
 - https://github.com/flutter/flutter/issues/30735

## Tests
- Added tests for new lifecycle value, as well as for the `AppLifecycleListener` itself.
2023-06-08 22:57:19 +00:00
..
cupertino Create CupertinoRadio Widget (#123296) 2023-03-30 15:43:36 +00:00
material Disable context menu (#128365) 2023-06-07 23:40:17 +00:00
painting Fix docs and error messages for scroll directions + sample code (#123819) 2023-03-31 23:46:59 +00:00
rendering Fix docs and error messages for scroll directions + sample code (#123819) 2023-03-31 23:46:59 +00:00
sample_templates Re-Land "Actually add example templates (#111531)" (#111666) 2022-09-15 16:17:06 +00:00
services Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
ui/text Enable unnecessary_import (#101600) 2022-04-08 12:56:45 -07:00
widgets Add AppLifecycleListener, with support for application exit handling (#123274) 2023-06-08 22:57:19 +00:00
flutter_test_config.dart Revert "Allow Flutter golden file tests to be flaky (#114450)" (#114902) 2022-11-08 09:26:55 -08:00
goldens_io.dart Revert "Allow Flutter golden file tests to be flaky (#114450)" (#114902) 2022-11-08 09:26:55 -08:00
goldens_web.dart Revert "Allow Flutter golden file tests to be flaky (#114450)" (#114902) 2022-11-08 09:26:55 -08:00