widget_lifecycle

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

widget lifecycle

inspired by android.lifecycle
Getting Started #
final controller = LifecycleController();
LifecycleAware(
key: ValueKey("id"),
controller: controller,
onShow: () {
debugPrint("onShow");
},
onHide: (){

},
showVisibilityThreshold: 0.5,
hideVisibilityThreshold: 0.1,
child: xxxx,
);


controller.trigger();

// resumed
controller.state == LifecycleState.resumed;
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.