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

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

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';
copied to clipboard
1.16k
likes
140
points
176k
downloads

Publisher

verified publishergoogle.dev

Weekly Downloads

2024.09.11 - 2025.03.26

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

Repository (GitHub)
Contributing

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on visibility_detector