WindowAdaptationState class

Immutable window capabilities consumed by UIKit layouts.

Annotations

Constructors

WindowAdaptationState({required bool isIPhoneDuoPath, required Size windowSize, required EdgeInsets safeAreaInsets, required EdgeInsets viewInsets, required Orientation orientation, required WindowFoldState foldState, required bool isWindowSizeUsable})
const
WindowAdaptationState.fromMediaQuery(MediaQueryData mediaQuery, {bool isIPhoneDuoPath = false, WindowFoldState foldState = WindowFoldState.unknown})
Creates a state from Flutter's current MediaQueryData.
factory

Properties

contentHeight → double
Height available to content after safe-area and keyboard insets.
no setter
contentWidth → double
Width available to content after horizontal safe-area insets.
no setter
foldState → WindowFoldState
Current fold state when supplied by a platform adapter.
final
hashCode → int
The hash code for this object.
no setteroverride
isIPhoneDuoPath → bool
Whether the iPhone Duo-specific layout path may be used.
final
isWindowSizeUsable → bool
Whether the window is large enough for core UIKit interactions.
final
orientation → Orientation
Current orientation derived from the window size.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
safeAreaInsets → EdgeInsets
System areas that must not be covered by content.
final
viewInsets → EdgeInsets
System obscured areas, including the on-screen keyboard.
final
windowSize → Size
The current Flutter window size in logical pixels.
final

Methods

copyWith({bool? isIPhoneDuoPath, Size? windowSize, EdgeInsets? safeAreaInsets, EdgeInsets? viewInsets, Orientation? orientation, WindowFoldState? foldState, bool? isWindowSizeUsable}) → WindowAdaptationState
Returns a copy with the supplied values replaced.
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.
override