0 purchases
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
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.