adaptive_scroller 1.0.2
adaptive_scroller: ^1.0.2 copied to clipboard
A Flutter scroll controller for long lists with variable item heights. It adaptively learns item sizes for accurate, efficient scrolling and a better user experience.
1.0.2 #
Performance #
- BREAKING: Reworked
calculateScrollOffsetto use an O(1) estimation algorithm for large jumps. This eliminates UI freezes when scrolling in very long lists. - The controller now calculates an estimated total list height to provide a more stable scroll extent when jumping to unmeasured items.
API & Fixes #
- BREAKING: Removed the
defaultItemHeightproperty fromAdaptiveScrollMetricsController. The controller now relies exclusively on its learnedaverageItemHeightfor more accurate estimations. - The
calculateScrollOffsetmethod now returns aScrollOffsetResultobject containing both thetargetOffsetand the scrolldistance. - Fixed static analysis warnings by adding explicit type annotations to getters.
- Added logic to better handle scrolling up from the bottom of the list.
General #
- Significantly improved documentation for all public classes and methods.
- Refined internal variable names for better code clarity.
- Removed all internal logging for a clean production release.
1.0.1 #
- BREAKING: Relocated
adaptive_scroller.dartintolib/directory to follow Dart package conventions. - Fixed
pubspec.yamldescription length to meet pub.dev validation requirements. - Added a complete, runnable example application to demonstrate package usage.
1.0.0 #
- Initial release of the adaptive_scroller package.