FoldQuery extension
Foldable-aware reads over MediaQueryData.displayFeatures.
These work against the real API, so layout written with them behaves the same in the preview and on a physical device.
Properties
-
cutouts
→ Iterable<
DisplayFeature> -
Available on MediaQueryData, provided by the FoldQuery extension
Every camera cutout feature.no setter - hasFold → bool
-
Available on MediaQueryData, provided by the FoldQuery extension
Whether this screen has a fold or hinge at all.no setter -
hinges
→ Iterable<
DisplayFeature> -
Available on MediaQueryData, provided by the FoldQuery extension
Every fold or hinge feature.no setter - isBookPosture → bool
-
Available on MediaQueryData, provided by the FoldQuery extension
Whether the fold runs vertically, splitting the screen left and right.no setter - isTabletopPosture → bool
-
Available on MediaQueryData, provided by the FoldQuery extension
Whether the fold runs horizontally, splitting the screen top and bottom.no setter - separatingFold → DisplayFeature?
-
Available on MediaQueryData, provided by the FoldQuery extension
The fold that splits the screen into two panes, or null.no setter