v0.1.2flutter_split_view
Flutter-Widget, das den Bildschirm basierend auf verfügbarem Platz automatisch in zwei Ansichten teilt. Dies basiert auf Navigator 2.0.
30Likes 12930-Tage-Downloads150Pub-Punkte
AndroidiOSWebmacOSWindowsLinux
Flutter-Widget basierend auf Navigator 2.0, das den Bildschirm automatisch in zwei Ansichten aufteilt, abhängig vom verfügbaren Platz.
{"sdk":"flutter"}{"sdk":"flutter"}^1.0.0Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.
A Navigator 2.0 based Flutter widget that automatically splits the screen into two views based on available space.
Demo
MaterialApp(
title: 'SplitView Demo',
home: SplitView.material(
child: MainPage(),
),
);
Cupertino:
CupertinoApp(
title: 'SplitView Demo',
home: SplitView.cupertino(
child: MainPage(),
),
);
SplitView.of(context).push(SecondPage());
Push with an optional title, which will be used as the back button's title in Cupertino:
SplitView.of(context).push(
SecondPage(),
title: 'Second',
);
SplitView.of(context).pop();
Pop until the n-th page:
SplitView.of(context).popUntil(1);
SplitView.of(context).setSecondary(SecondPage());
This will clear the stack and push the new page, making it the second page in the stack.
SplitView.of(context).isSecondaryVisible;