flutter_fgbg_lego 1.0.2 copy "flutter_fgbg_lego: ^1.0.2" to clipboard
flutter_fgbg_lego: ^1.0.2 copied to clipboard

lego that notify when the app goes into the background or comes to the foreground

lego project pub package

flutter_fgbg_lego #

lego that notify when the app goes into the background or comes to the foreground

Installation #

  1. open terminal in the lego project root directory, enter the following command for install cli. and create a new lego project if you don't have one.
flutter pub global activate lego_cli
lego create
  1. in terminal, enter the following command for add lego to project.
lego add flutter_fgbg_lego

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.
});
2
likes
105
points
28
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

lego that notify when the app goes into the background or comes to the foreground

Repository (GitHub)
View/report issues

Topics

#lego

License

MIT (license)

Dependencies

bot_toast, easy_event_bus, flutter, flutter_fgbg, flutter_screenutil, flutter_svg, flutter_zoom_drawer, gap, june_flow_util, keyboard_attachable, modal_bottom_sheet, styled_widget

More

Packages that depend on flutter_fgbg_lego