An open API service indexing awesome lists of open source software.

https://github.com/shiburagi/coordinator-layout---flutter

a Library contains widget/layout to handle collapsing header behavio
https://github.com/shiburagi/coordinator-layout---flutter

appbar coordinatorlayout header

Last synced: 10 months ago
JSON representation

a Library contains widget/layout to handle collapsing header behavio

Awesome Lists containing this project

README

          

# coordinator_layout

[![pub package](https://img.shields.io/pub/v/coordinator_layout.svg)](https://pub.dartlang.org/packages/coordinator_layout)

a Library contains widget/layout to handle collapsing header behavior

![Alt Text](https://raw.githubusercontent.com/shiburagi/Coordinator-Layout/master/preview/gif1.gif)

## Example
```dart
CoordinatorLayout(
headerMaxHeight: 200,
headerMinHeight: kToolbarHeight + MediaQuery.of(context).padding.top,
headers: [
SliverCollapsingHeader(
builder: (context, offset, diff) {
return ...;
},
),
],
body: Container(height: null, child: buildBody(context)),
),
```

#### Fit content

```dart
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)),
),
```