flutter_magnetic_scroll 0.2.0 copy "flutter_magnetic_scroll: ^0.2.0" to clipboard
flutter_magnetic_scroll: ^0.2.0 copied to clipboard

A Flutter custom ScrollPhysics package for TikTok/Reels style feeds and pickers. Features magnetic snapping to fixed or variable item boundaries with physics-based smoothness.

0.2.0 #

  • Add MagneticScrollView wrapper widget for an out-of-the-box simplified API.
  • Add MagneticSnapAlignment (start, center, end) to support horizontal carousels and custom pickers.
  • Add itemSizeBuilder to support infinite, dynamically sized feeds without lag using a smart cache.

0.1.0 #

  • Initial release.
  • Add support for variable item sizes using itemSizes.
  • Introduce MagneticScrollController for programmatic navigation (animateToItem, jumpToItem) and focus tracking.
  • Add onItemFocused callback to MagneticScrollPhysics to handle early snap prediction.
  • Add strictSingleItemSnapping rule to enforce one-item-per-swipe behavior (useful for TikTok/Reels clones).
0
likes
160
points
158
downloads

Documentation

API reference

Publisher

verified publisherpinz.dev

Weekly Downloads

A Flutter custom ScrollPhysics package for TikTok/Reels style feeds and pickers. Features magnetic snapping to fixed or variable item boundaries with physics-based smoothness.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_magnetic_scroll