visibility_detector 0.4.0+2 copy "visibility_detector: ^0.4.0+2" to clipboard
visibility_detector: ^0.4.0+2 copied to clipboard

A widget that detects the visibility of its child and notifies a callback.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add visibility_detector

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  visibility_detector: ^0.4.0+2

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:visibility_detector/visibility_detector.dart';
964
likes
120
pub points
99%
popularity

Publisher

verified publishergoogle.dev

A widget that detects the visibility of its child and notifies a callback.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on visibility_detector