duo_kit library
Layouts for foldables such as iPhone Duo: fold geometry, a scaffold, a split view and anchors for dialogs.
Classes
- FoldDivision
- A fold or hinge that splits the window in two.
- FoldGeometry
- Where the system reserves room in the window: a side strip for its controls, a fold that splits the window, and occlusions such as cameras.
- FoldScaffold
- Lays body out with the navigation from navigationBuilder either along the bottom edge or, where the window has a FoldStrip, in that strip.
- FoldSplitView
- Lays first and second out on either side of a fold that crosses this widget, and in the layout from unfoldedBuilder otherwise.
- FoldStrip
- A strip along a side edge of the window that the system keeps for its own controls, like the one iPhone Duo has beside its status cluster.
Enums
- FoldAnchor
-
Which half of a window split by a fold a route opens in, given as the
anchorPointof showGeneralDialog and the routes built like it, such asshowDialogandshowModalBottomSheet. - Where a FoldScaffold puts its navigation.
- FoldStripSide
- The side edge of the window a FoldStrip runs along.
Typedefs
-
Builds the navigation of a FoldScaffold for
placement. - FoldSplitViewBuilder = Widget Function(BuildContext context, Widget first, Widget second)
-
Builds the layout of a FoldSplitView while no fold crosses it, from its
firstandsecondpanes.