horizontal_blocked_scroll_physics 2.0.0 copy "horizontal_blocked_scroll_physics: ^2.0.0" to clipboard
horizontal_blocked_scroll_physics: ^2.0.0 copied to clipboard

outdated

A ScrollPhysics class that blocks movement in the horizontal axis.

Horizontal Blocked ScrollPhysics #

Build Status License: MIT Pub

A ScrollPhysics class that blocks movement in the horizontal axis.

How to use it #

The API of this ScrollPhysics is fairly straighforward.

Basically, you have a couple of properties in order to block right (blockRightMovement) and left (blockLeftMovement) movements.

Blocking movement #

HorizontalBlockedScrollPhysics(blockLeftMovement: true);

You can see here that the user is swiping to the left (which is blocked) but the screen will be able to move to the left if the movement is not completed. Note that the text will go back to the center.

swiping_left_recovery

28
likes
40
pub points
88%
popularity

Publisher

verified publisherkoahealth.tech

A ScrollPhysics class that blocks movement in the horizontal axis.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter, pedantic

More

Packages that depend on horizontal_blocked_scroll_physics