Skip to content

evanwsu/snap_scroll_physics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Features

example

Getting started

This is a product that easily achieves sliding adsorption effect, it is realized by custom ScrollPhysics, you will like it.

Usage

It can be used in any sliding control that supports physics parameters, and it is very simple to use.

// ListView
ListView(
physics: const SnapScrollPhysics(snapHeight: 250)
);

// CustomScrollView
CustomScrollView(
physics: const SnapScrollPhysics(snapHeight: 250)
);

About

优雅实现ScrollView滑动吸附效果

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published