flutter_widget_lifecycle 0.0.1
flutter_widget_lifecycle: ^0.0.1 copied to clipboard

Flutter Android iOS Linux macOS web Windows

A new Flutter package can detect when widget is appear or not.

flutter_widget_lifecycle #

A new Flutter package can detect when widget is appear or not.

Getting Started #

LifeCycleWidget(
      onAppear: () {
        print('tab1 onAppear');
      },
      onDisappear: () {
        print('tab1 onDisappear');
      },
      child: Scaffold(
        appBar: AppBar(),
        body: Center(
            child: Container(
          child: Column(
            mainAxisSize: MainAxisSize.min,
            children: [
              Text('tab1'),
            ],
          ),
        )),
      ),
    )
0
likes
90
pub points
0%
popularity

Publisher

tbm98.dev

A new Flutter package can detect when widget is appear or not.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD (LICENSE)

Dependencies

flutter, visibility_detector

More

Packages that depend on flutter_widget_lifecycle