개요
수평 스크롤을 방지하고 콘텐츠가 수직으로만 스크롤되도록 보장하는 ScrollPhysics 구현입니다. 양식이나 단일 열 인터페이스와 같이 수평 이동이 사용자 경험을 해칠 수 있는 레이아웃에 이상적입니다. Flutter의 기본 ScrollPhysics를 확장하며 ListView, Scrollable 또는 기타 스크롤 가능한 위젯에 원활하게 통합됩니다. 패키지는 가볍고 모바일, 웹, 데스크톱을 포함한 모든 주요 플랫폼과 호환됩니다. 커스텀 물리 로직 없이 스크롤 동작에 대해 세밀한 제어를 원하는 개발자를 위한 것입니다.
사용 사례
- 폼 내에서 수직 스크롤 전용
- 의도하지 않은 수평 스와이프 방지
- 단일 열 콘텐츠 레이아웃
- 스크롤 가능한 UI에서 접근성 향상
- 일관된 탐색 흐름 보장
주요 기능
- Blocks horizontal scroll gestures
- Extends Flutter's ScrollPhysics
- Cross-platform compatibility
- Minimal performance overhead
- Easy integration with existing scrollables
- No external dependencies
적합한 대상
- Developers needing strict vertical scrolling
- UI designers focusing on gesture consistency
- Apps with sensitive form inputs
- Accessibility-focused applications
- Simple, predictable scroll behaviors
고려 사항
- Not suitable for horizontally scrollable content
- May conflict with nested scroll views
- Requires careful handling in complex layouts
- Limited to blocking horizontal movement only
- Does not affect vertical scroll behavior