v1.0.1
coordinator_layout
Eine Bibliothek enthält Widget/Layouts zur Behandlung des Zusammenklappverhaltens von Kopfzeilen
4Likes 5930-Tage-Downloads150Pub-Punkte
AndroidiOSWebmacOSWindowsLinux
Eine Bibliothek enthält Widget/Layouts zur Handhabung des zusammenfallenden Kopfzeilenverhaltens
{"sdk":"flutter"}{"sdk":"flutter"}Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.
a Library contains widget/layout to handle collapsing header behavior
Alt Text
CoordinatorLayout(
headerMaxHeight: 200,
headerMinHeight: kToolbarHeight + MediaQuery.of(context).padding.top,
headers: [
SliverCollapsingHeader(
builder: (context, offset, diff) {
return ...;
},
),
],
body: Container(height: null, child: buildBody(context)),
),
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)),
),