FoldTestPose enum

Window metrics of iPhone Duo poses, for widget and golden tests.

Measured on the iPhone Duo simulator (iOS 27.1). The fold and the occlusions appear in MediaQueryData.displayFeatures as a bridge publishing the reserved regions of the window puts them there: occlusions as cutouts, and the fold only while the device is half open.

The inner display has one landscape pose: in both landscape rotations the system keeps the strip and the status cluster on the right. On the cover display the strip follows the camera, so it has a landscape pose for each side.

Inheritance
Available extensions

Values

duoCover → const FoldTestPose

The cover display of the closed device, with no display features, as Flutter reports it without a bridge.

duoCoverWithOcclusions is what a bridge such as duo_kit_ios reports.

const FoldTestPose(MediaQueryData(size: _coverSize, padding: _rightStripPadding, viewPadding: _rightStripPadding))
duoCoverWithOcclusions → const FoldTestPose

The cover display with its camera and status cluster published as cutouts.

const FoldTestPose(MediaQueryData(size: _coverSize, padding: _rightStripPadding, viewPadding: _rightStripPadding, displayFeatures: [_coverCamera, _coverStatusCluster]))
duoCoverLandscapeLeft → const FoldTestPose

The cover display in landscape with the camera on the left, where the strip and the status cluster move to the left edge.

const FoldTestPose(MediaQueryData(size: _coverLandscapeSize, padding: _leftStripPadding, viewPadding: _leftStripPadding, displayFeatures: [_coverLandscapeLeftCamera, _coverLandscapeLeftStatusCluster])…
duoCoverLandscapeRight → const FoldTestPose

The cover display in landscape with the camera on the right, where the status cluster sits at the bottom of the strip.

const FoldTestPose(MediaQueryData(size: _coverLandscapeSize, padding: _rightStripPadding, viewPadding: _rightStripPadding, displayFeatures: [_coverLandscapeRightCamera, _coverLandscapeRightStatusClust…
duoInnerLandscape → const FoldTestPose

The inner display in landscape, lying flat, with the strip on the right.

const FoldTestPose(MediaQueryData(size: _innerLandscapeSize, padding: _rightStripPadding, viewPadding: _rightStripPadding, displayFeatures: [_innerLandscapeStatusCluster]))
duoInnerPortrait → const FoldTestPose

The inner display in portrait, lying flat, with the status cluster in the top right corner.

const FoldTestPose(MediaQueryData(size: _innerPortraitSize, padding: _innerPortraitPadding, viewPadding: _innerPortraitPadding, displayFeatures: [_innerPortraitStatusCluster]))
duoHalfOpenedLandscape → const FoldTestPose

The inner display in landscape, half open like a book.

const FoldTestPose(MediaQueryData(size: _innerLandscapeSize, padding: _rightStripPadding, viewPadding: _rightStripPadding, displayFeatures: [_innerLandscapeStatusCluster, _landscapeFold]))
duoHalfOpenedPortrait → const FoldTestPose

The inner display in portrait, half open like a laptop.

const FoldTestPose(MediaQueryData(size: _innerPortraitSize, padding: _innerPortraitPadding, viewPadding: _innerPortraitPadding, displayFeatures: [_innerPortraitStatusCluster, _portraitFold]))

Properties

data → MediaQueryData
The window metrics of this pose.
final
hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

values → const List<FoldTestPose>
A constant List of the values in this enum, in order of their declaration.