v0.1.0scroll_snap_effect
A Flutter package to create easy scroll snap effect
26Likes 1730-day downloads150Pub points
AndroidiOSWebmacOSWindowsLinux
A Flutter package to create easy animation scroll snap effect in ListView
English project snapshot. Visit GitHub for the latest content.
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,
),
),
),
),
),
);
},
),
Farhan Fadila
📫 How to reach me: farhan.fadila1717@gmail.com
Dependency list 3 items
{"sdk":"flutter"}{"sdk":"flutter"}^1.0.0Start with your use case, compare repository activity, and check the original project before adopting it.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗
