limited_extent_scroll_view 1.0.0 copy "limited_extent_scroll_view: ^1.0.0" to clipboard
limited_extent_scroll_view: ^1.0.0 copied to clipboard

A scroll view that shrink wraps content until given height then starts to scroll

Limited Extent Scroll View #


A scroll view that shrink wraps content until given height, after which point it starts to scroll. #


https://github.com/user-attachments/assets/b3378fe3-ec16-4c10-8edc-cbc7cbaeb478

  • Accepts whatever slivers a CustomScrollView would accept.
  • Supports infinite scrolling.
  • Supports both vertical and horizontal scrolling.
  • Supports SliverPersistentHeader, SliverFillRemaining, etc.

Example: #

// If the total content height of this scroll view turns out 
// to be less than 350, the this will shrink wrap to children's size.
// If content height is greater than 350, the scroll view will scroll.
// Infinite children are supported.
LimitedExtentScrollView(
  maxExtent: 350,
  slivers: [
    SliverList(
      delegate: SliverChildBuilderDelegate((ctx, index) {
        return ListTile(title: Text('Item ${items[index]}'));
      }),
    ),
  ],
)
0
likes
150
points
29
downloads

Publisher

unverified uploader

Weekly Downloads

A scroll view that shrink wraps content until given height then starts to scroll

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on limited_extent_scroll_view