gome_visibility_aware 0.0.1 copy "gome_visibility_aware: ^0.0.1" to clipboard
gome_visibility_aware: ^0.0.1 copied to clipboard

A widget that detects whether it's currently visible in the viewport.

pub package

gome_visibility_aware #

A widget that detects whether it's currently visible in the viewport. Useful for:

  • Lazy loading
  • Scroll-based triggers
  • Analytics or animation optimization

Features #

  • Viewport-based visibility tracking
  • Index-based scroll delay
  • Built-in integration with IntrinsicHeightMemo to preserve layout
  • Throttled scroll listener

Usage #

VisibilityAware(
  index: 0,
  onVisibleChange: (isVisible) {
    print('Visible? $isVisible');
  },
  child: Text('Hello'),
)
0
likes
140
points
156
downloads

Publisher

unverified uploader

Weekly Downloads

A widget that detects whether it's currently visible in the viewport.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, gome_intrinsic_height_memo

More

Packages that depend on gome_visibility_aware