Skip to content
pubscout

horizontal_blocked_scroll_physics

4.0.1, released 5 years ago by koahealth.tech

ScrollPhysics that blocks scrolling in one horizontal direction.

WASM-ready
$ flutter pub add horizontal_blocked_scroll_physics
Source repository

What it does

Provides LeftBlockedScrollPhysics to prevent leftward scrolling and RightBlockedScrollPhysics to prevent rightward scrolling. It integrates with Flutter's Scrollable to enforce directional blocking while allowing recovery if a swipe isn’t completed.

AI-written summary of version 4.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to restrict horizontal scroll direction in a ListView or PageView
  • You want simple, lightweight control over scroll direction without custom gesture detectors

Skip it when

  • Complex multi-directional scrolling logic is required
  • You need built‑in physics like bouncing or overscroll handling beyond simple blocking

Strengths

  • Small, focused API
  • Works with Flutter's native Scrollable physics system
  • No extra dependencies

Weaknesses

  • Only handles horizontal blocking, no vertical control
  • Limited configurability beyond left/right

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
ListView(
  physics: LeftBlockedScrollPhysics(),
  children: [...],
);