visibility_detector 0.4.0+2 icon indicating copy to clipboard operation
visibility_detector: ^0.4.0+2 copied to clipboard

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


0.4.0+2 #

  • Fix a bug for updates to render objects that have not been laid out yet.

0.4.0+1 #

  • Correct Flutter SDK version dependency to 3.1.0.
  • Replace use of deprecated APIs in the example for compatibility with Flutter v3.1.0.

0.4.0 #

  • Refactor to avoid forcing composition in the layer/render trees.
  • Remove VisibilityDetectorLayer.
  • Add RenderVisibilityDetectorBase as a mixin that mostly takes over functionality from the old layer.
  • Remove the lookup map/method for getting former screen rects and instead add the rect to VisibilityInfo.

0.3.3 #

  • Re-apply Flutter framework bindings' null safety calls but set SDK constraints correctly to 2.12.0 instead.

0.3.2 #

  • Reverts change from 0.3.0 where the Flutter version constraint should have been set to 2.12.0 instead of 2.10.5.

0.3.1-dev #

  • Populate the pubspec repository field.

0.3.0 #

  • Move to Flutter version 2.10.5 and update dependencies' null safety calls.

0.2.2 #

  • Minor internal changes to maintain forward-compatibility with flutter#91753.

0.2.1 #

  • Bug fix for using VisibilityDetector with FittedBox and Transform.scale issue #285.

0.2.0 #

  • Added SliverVisibilityDetector to report visibility of RenderSliver-based widgets. Fixes issue #174.

0.2.0-nullsafety.1 #

  • Revert change to add VisibilityDetectorController.scheduleNotification, which introduced unexpected memory usage.

0.2.0-nullsafety.0 #

  • Update to null safety.

  • Try to fix the link to the example on

  • Revert tests to again use RenderView instead of TestWindow.

  • Add VisibilityDetectorController.scheduleNotification to force firing a visibility callback.

0.1.5 #

  • Compatibility fixes to demo.dart for Flutter 1.13.8.

  • Moved demo.dart to an examples/ directory, renamed it, and added instructions to

  • Adjusted tests to use TestWindow instead of RenderView.

  • Added a "Known limitations" section to

0.1.4 #

  • Style and comment adjustments.

  • Fix a potential infinite loop in the demo app and add tests for it.

0.1.3 #

  • Fixed positioning of text selection handles for EditableText-based widgets (e.g. TextField, CupertinoTextField) when used within a VisibilityDetector.

  • Added VisibilityDetectorController.widgetBoundsFor.

0.1.2 #

  • Compatibility fixes for Flutter 1.3.0.

0.1.1 #

  • Added VisibilityDetectorController.forget.
pub points


verified publisher

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

Repository (GitHub)
View/report issues


API reference


Icon for licenses.BSD-3-Clause (LICENSE)




Packages that depend on visibility_detector