constrained_scrollable_views
1.0.4, released 2 years ago by dowhile.space
Composable scrollable views that constrain size to parent constraints
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.
- syncfusion_flutter_datagrid
DataGrid widget for tabular data with editing, sorting, paging and export.
91Compare - smooth_page_indicator
Customizable animated page indicators with a set of built-in effects for Flutter.
83Compare - sliver_tools
Utility sliver widgets missing from the Flutter framework
50Compare - reorderable_grid_view
A reorderable grid view widget for Flutter supporting drag-and-drop reordering.
50Compare