flutter_fgbg_module 1.0.1 copy "flutter_fgbg_module: ^1.0.1" to clipboard
flutter_fgbg_module: ^1.0.1 copied to clipboard

This is a module that notifies you when the app goes into the background or comes to the foreground

pub package

flutter_fgbg_module #

This is a module that notifies you when the app goes into the background or comes to the foreground

Installation #

  1. If the juneflow project doesn't exist, please create it by following this guide.
  2. 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.
});
0
likes
95
pub points
0%
popularity

Publisher

unverified uploader

This is a module that notifies you when the app goes into the background or comes to the foreground

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

easy_event_bus, flutter, flutter_fgbg, go_router, june_flow_util

More

Packages that depend on flutter_fgbg_module