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

Enhanced DraggableScrollableSheet constrained to a tucking widget

flutter_tucking_draggable_scrollable_sheet #

pub package GitHub Stars Platform

Basically a DraggableScrollableSheet, but enhanced by constraining the minChildSize and maxChildSize accordingly to the tucking widget.

Example

Installation #

Add the following to your pubspec.yaml file

dependencies:
    flutter_tucking_draggable_scrollable_sheet: ^1.0.0

Usage #

TuckingDraggableScrollableSheet(
    /// Control snapping of [DraggableScrollableSheet]
    snap: true,
    /// Extent of how much [tucking] widget is tucked behind the sheet initially
    initialTuckedExtent: 0.0
    /// The [Widget] that will be covered when sheet is fully expanded
    tucking: Padding(
        padding: const EdgeInsets.all(16.0),
        child: Text('Tucking Subtitle'),
    ),
    /// Builder is forwarded to [DraggableScrollableSheet]
    sheetBuilder: (context, scrollController) => Card(
        child: ListView.builder(
            /// Ensure [scrollController] is passed to nesting scroll views
            controller: scrollController,
            itemBuilder: (context, index) => ListTile(
                title: Text('Item $index'),
            ),
            itemCount: 100,
        ),
    ),
)
6
likes
160
pub points
68%
popularity

Publisher

unverified uploader

Enhanced DraggableScrollableSheet constrained to a tucking widget

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_tucking_draggable_scrollable_sheet