split_screen library

Classes

DualScreenInfo
SplitScreen
Augments the ambient MediaQuery with native iOS folds. TwoPane already does this internally. This optional wrapper is useful for custom layouts that read display features outside TwoPane. It augments only its descendants, so those consumers need this wrapper at the app root. Duo divisions are folds; physical-hinge-only checks will not detect them. Place at the root: builder: (_, child) => SplitScreen(child: child). Engine-provided hinge/fold features take precedence. Other platforms pass through unchanged. A null child never starts native observation.
TwoPane
A widget that positions two panes side by side on uninterrupted screens or on either side of a separating DisplayFeature on screens interrupted by a separating DisplayFeature. Native iOS division regions are observed automatically; no app wrapper is required. Android and other platforms use their ambient display features.

Enums

TwoPaneAllowedOverrides
TwoPanePriority
Describes if showing both panes at the same time or which one if only one is shown.

Extensions

MediaQueryHinge on MediaQueryData
Extension method that helps with working with the hinge specifically.