Search packages, repositories and app categories

scroll_snap_effect cover
Package detailsv0.1.0

scroll_snap_effect

A Flutter package to create easy scroll snap effect

AndroidiOSWebmacOSWindowsLinux
30-day downloads
16
Likes
26
Pub points
150

Install package

flutter pub add scroll_snap_effect

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter package that simplifies the implementation of scroll snap effects in scrollable widgets. It enables smooth, precise snapping to specific positions during scrolling, ideal for creating carousel-like or segmented scroll interfaces. The package is lightweight and integrates seamlessly with existing ScrollViews, offering developers an easy way to enhance user experience with intuitive navigation. It supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux.

Use cases

  • Creating carousels or sliders
  • Building segmented scroll interfaces
  • Enhancing navigation in onboarding screens
  • Designing image galleries with snap-to-grid
  • Implementing tabbed scroll views

Key features

  • Simple API for snap behavior
  • Supports multiple scroll directions
  • Smooth snapping animations
  • Cross-platform compatibility
  • Easy integration with ListView and PageView
  • Customizable snap intervals

Suitable for

  • Developers building interactive scroll-based UIs
  • Designers seeking intuitive scroll navigation
  • Apps requiring grid-aligned scrolling
  • Projects targeting multiple platforms
  • Teams wanting minimal setup for scroll effects

Considerations

  • May require tuning for complex layouts
  • Limited customization for non-linear snapping
  • Not optimized for extremely large datasets
  • Best suited for fixed-size items
  • Performance may vary with heavy widget trees

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

cover

flutter paypal
A Flutter package to create easy animation scroll snap effect in ListView


  // Example itemSize
  // itemSize = child width (ex: 100) + child padding (ex: 16);
  // itemSize = 116
  ScrollSnapEffect(
      itemSize: 116,
      itemCount: 15,
      padding: const EdgeInsets.symmetric(horizontal: 20),
      onChanged: (index) {
        debugPrint('$index');
      },
      itemBuilder: (context, index) {
        return Padding(
          padding: const EdgeInsets.only(right: 16),
          child: SizedBox(
            height: 100,
            width: 100,
            child: ColoredBox(
              color: Colors.blue,
              child: Center(
                child: Text(
                  '$index',
                  style: const TextStyle(
                    color: Colors.white,
                    fontSize: 20,
                  ),
                ),
              ),
            ),
          ),
        );
      },
    ),

Example Scroll Snap Effect

output


🚧 Maintener

account avatar
Farhan Fadila
📫 How to reach me: farhan.fadila1717@gmail.com

❤️ Suport Maintener

paypal badge linktree

Categories

Source repository

Projects using this package

No data available yet.