coordinator_layout 0.0.5+5

Flutter Android iOS web

a Library contains widget/layout to handle collapsing header behavior

coordinator_layout #

pub package

a Library contains widget/layout to handle collapsing header behavior

Alt Text

Example #

CoordinatorLayout(
    maxHeight: 200,
    minHeight: kToolbarHeight + MediaQuery.of(context).padding.top,
    headers: [
        SliverCollapsingHeader(
            builder: (context, offset, diff) {
                return ...;
            },
        ),
    ],
    body: Container(height: null, child: buildBody(context)),
),

Fit content

CoordinatorLayout(
    headerMaxHeight: 200,
    headerMinHeight: kToolbarHeight + MediaQuery.of(context).padding.top,
    header:[ 
        Builder(builder: (context) {
            return SliverOverlapAbsorber(
            handle: NestedScrollView.sliverOverlapAbsorberHandleFor(context),
            sliver: SliverSafeArea(
                top: false,
                sliver: SliverCollapsingHeader(
                builder: (context, offset, diff) {
                    return ...;
                },
                ),
            ),
            );
        }),
    ],
    body: Container(height: null, child: buildBody(context)),
),
2
likes
110
pub points
48%
popularity

a Library contains widget/layout to handle collapsing header behavior

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

tr32010@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on coordinator_layout