You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 13, 2025. It is now read-only.
For example, this feature enables to prepare required resources (e.g. image fetching, decoding, API request, ...) to show the widget's content before the widget is visible. This may improve the user's experience by fetching the required resources early.
VisibilityDetector(
key:Key('my-widget-key'),
margin:constEdgeInsets.symmetric(vertical:-100.0), // this means to expand the detection area 100px vertically
onVisibilityChanged: (visibilityInfo) {
if (visibilityInfo.visibleFraction >0) {
prepareForShowingWidget();
}
},
child: someLazyWidget,
)