flutter_fgbg_module
This is a module that notifies you when the app goes into the background or comes to the foreground
Installation
- If the juneflow project doesn't exist, please create it by following this guide.
- open terminal in the juneflow project root directory, enter the following command.
june add flutter_fgbg_module
Usage
You can always listen to the app's state changes through the following code.
EasyEventBus.on('App is in foreground', (event) {
// write your code here when the app is in the foreground.
});
EasyEventBus.on('App is in background', (event) {
// write your code here when the app is in the background.
});
Libraries
- main
- util/_/initial_app/build_app_widget/build_material_app/_
- util/_/initial_app/build_app_widget/build_material_app/flutter_fgbg_module/_
- util/_/initial_app/build_app_widget/build_my_app/_
- util/_/initial_app/build_app_widget/build_my_app/flutter_fgbg_module/_
- util/_/initial_app/build_app_widget/build_run_app/_
- util/_/initial_app/build_app_widget/build_run_app/flutter_fgbg_module/_
- util/_/initial_app/ready_functions/after_material_app/_
- util/_/initial_app/ready_functions/after_material_app/flutter_fgbg_module/_
- util/_/initial_app/ready_functions/before_material_app/_
- util/_/initial_app/ready_functions/before_material_app/flutter_fgbg_module/_
- util/_/initial_app/ready_functions/before_run_app/_
- util/_/initial_app/ready_functions/before_run_app/flutter_fgbg_module/_
- util/_/initial_app/ready_functions/before_run_app/widgets_binding/_
- util/_/shared_params/_/go_router
- util/_/shared_params/_/material_app
- util/_/shared_params/_/start_app_params
- util/_/shared_params/_/widgets_binding
- util/config/_/global_imports
- util/config/_/init_view
- util/config/_/router/_/_
- util/usage/flutter_fgbg_module/usage