flutter_fgbg_lego

Last updated:

0 purchases

flutter_fgbg_lego Image
flutter_fgbg_lego Images
Add to Cart

Description:

flutter fgbg lego

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

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
copied to clipboard

in terminal, enter the following command for add lego to project.

lego add flutter_fgbg_lego
copied to clipboard
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.
});
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.