inview_notifier_list 4.0.1
inview_notifier_list: ^4.0.1 copied to clipboard
A Flutter package that builds a listview and notifies when the widgets are on screen.
4.0.1 4th April 2026. #
Fixes
- Fixed
deltaBottomusingsize.heightinstead ofsize.widthfor horizontal scroll lists, causing incorrect in-view detection. (#35, #40) — thanks to @AlexanderFarkas for identifying the fix in #37.
Features
- Exposed remaining
ListView.builderproperties:cacheExtent,itemExtent,prototypeItem,findChildIndexCallback,addRepaintBoundaries,addSemanticIndexes,semanticChildCount,dragStartBehavior,keyboardDismissBehavior,restorationId,clipBehavior. (#43, #36) — thanks to @nqhhdev for the initial work in #60. - Exposed remaining
CustomScrollViewproperties:cacheExtent,scrollBehavior,semanticChildCount,dragStartBehavior,keyboardDismissBehavior,restorationId,clipBehavior.
Example App
- Added horizontal scroll example tab.
4.0.0 4th April 2026. #
Breaking Changes
- Minimum SDK: Dart
>=3.0.0, Flutter>=3.10.0. Dropped Dart 2.x support.
Fixes & Improvements
- Fixed
InheritedInViewWidgetredeclaringchildfield fromProxyWidget(compile error on Dart 3.x). - Removed unnecessary
!onRenderAbstractViewport.of()(now returns non-nullable in Flutter 3.x). - Modernized
typedefsyntax to generic function type aliases. - Replaced
switch/breakwith Dart 3 switch expression for scroll direction. - Removed unnecessary
Containerwrapper inInViewNotifierWidget. - Adopted
super.keyand super parameters across all widget constructors. - Replaced Travis CI with GitHub Actions with Codecov integration.
- Added
analysis_options.yamlwithflutter_lints.
Tests
- Comprehensive test suite: 4 → 27 tests covering all public APIs.
- Tests are now self-contained (no longer import from the example app).
- Added coverage for:
initialInViewIds,onListEndReached,endNotificationOffset,throttleDurationchanges,didUpdateWidgetid re-registration,disposecleanup,childoptimization, horizontal scroll,reverse,shrinkWrap, andnotifyListenersdedup. - 92.8% code coverage.
Example App
- Regenerated Android/iOS/web native scaffolding for Flutter 3.x.
- Updated
TextTheme.headline4(removed) toheadlineSmall. - Updated
VideoPlayerController.network()(deprecated) to.networkUrl(). - Updated
Color.withOpacity()(deprecated) to.withValues(alpha:).
3.0.0 28th December 2021. #
Breaking Changes
-
Removed the
contextCacheCountproperty. The context will be auto cached and removed. -
Fixed
Cannot get renderObject of inactive element.issue. Thanks to SteepSheep's PR. -
updated the video example to use latest plugin version.
2.0.0 5th June 2021. #
- Migrated to Null Safety.
1.0.0 3rd April 2020. #
-
Code refactors.
-
Added support for
CustomScrollViewwith the addition ofInViewNotifierCustomScrollView. -
InViewNotifierListnow uses abuilderfunction to build it's children. This is replaced with previously usedchildrenproperty. -
Added
InViewNotifierWidgetwhich gets notified if it is currently inside the viewport conditionprovided by the
InViewPortConditioncondition. Checkout out the example for usage. -
No longer need to add widget's context to
InViewStateand useAnimatedBuilderto get notified if the widget is in-view.
0.0.4 13th December 2019. #
- Fixed fast scroll bugs.
- Updated use of
ancestorInheritedElementForWidgetOfExactType(depricated) withgetElementForInheritedWidgetOfExactType. - Added more properties to list like
reverse,shrinkWrap.
0.0.3 10th September 2019. #
Added two extra properties padding and physics.
0.0.1 18th June 2019. #
A Flutter package that builds a ListView and notifies when the widgets are on screen within a provided area.
0.0.1+1 19th June 2019. #
Breaking- Fixed the typo for the property name from srollDirection to scrollDirection.
Before(v0.0.1):
InViewNotifierList(
srollDirection: Axis.vertical,
)
After(v0.0.2):
InViewNotifierList(
scrollDirection: Axis.vertical,
)
`