Skip to content
pubscout

constrained_scrollable_views

1.0.4, released 2 years ago by dowhile.space

Composable scrollable views that constrain size to parent constraints

WASM-ready
$ flutter pub add constrained_scrollable_views
Source repository

What it does

Provides ConstrainedScrollView, ScrollableColumn, and ScrollableRow widgets that wrap standard scroll views with a LayoutBuilder to enforce minimum width/height. They allow scrolling content while respecting the parent’s constraints.

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

Use it when

  • You need a scrollable area that adapts to available space
  • You want a simple column or row that scrolls when content overflows
  • You prefer a declarative widget over manual ScrollView setup

Skip it when

  • You need advanced scrolling features like slivers or custom physics
  • You require complex layout logic beyond simple constraints

Strengths

  • Easy to use, minimal API
  • Adapts automatically to parent constraints
  • No extra dependencies

Weaknesses

  • Limited to simple scrollable layouts
  • No sliver support
  • No advanced customization

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
ConstrainedScrollView(
  padding: const EdgeInsets.all(8),
  physics: const BouncingScrollPhysics(),
  constraintsBuilder: (c) => BoxConstraints(minWidth: c.maxWidth, minHeight: c.maxHeight),
  child: const Center(child: Text('ScrollView value')),
)

Alternatives

Packages that do the same job and could replace constrained_scrollable_views.