FlutterWindow class Null safety
A top-level platform window displaying a Flutter layer tree drawn from a Scene.
The current list of all Flutter views for the application is available from
WidgetsBinding.instance.platformDispatcher.views
. Only views that are of type
FlutterWindow are top level platform windows.
There is also a PlatformDispatcher.instance singleton object in dart:ui
if WidgetsBinding
is unavailable, but we strongly advise avoiding a static
reference to it. See the documentation for PlatformDispatcher.instance for
more details about why it should be avoided.
See also:
- PlatformDispatcher, which manages the current list of FlutterView (and thus FlutterWindow) instances.
- Inheritance
-
- Object
- FlutterView
- FlutterWindow
- Implementers
Properties
- devicePixelRatio → double
-
The number of device pixels for each logical pixel for the screen this
view is displayed on.
read-onlyinherited
-
displayFeatures
→ List<
DisplayFeature> -
Areas of the display that are obstructed by hardware features.
read-onlyinherited
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- padding → WindowPadding
-
The number of physical pixels on each side of the display rectangle into
which the view can render, but which may be partially obscured by system
UI (such as the system notification area), or physical intrusions in
the display (e.g. overscan regions on television screens or phone sensor
housings).
read-onlyinherited
- physicalGeometry → Rect
-
The dimensions and location of the rectangle into which the scene rendered
in this view will be drawn on the screen, in physical pixels.
read-onlyinherited
- physicalSize → Size
-
The dimensions of the rectangle into which the scene rendered in this view
will be drawn on the screen, in physical pixels.
read-onlyinherited
- platformDispatcher → PlatformDispatcher
-
The platform dispatcher that this view is registered with, and gets its
information from.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- systemGestureInsets → WindowPadding
-
The number of physical pixels on each side of the display rectangle into
which the view can render, but where the operating system will consume
input gestures for the sake of system navigation.
read-onlyinherited
- viewConfiguration → ViewConfiguration
-
The configuration of this view.
read-onlyoverride
- viewInsets → WindowPadding
-
The number of physical pixels on each side of the display rectangle into
which the view can render, but over which the operating system will likely
place system UI, such as the keyboard, that fully obscures any content.
read-onlyinherited
- viewPadding → WindowPadding
-
The number of physical pixels on each side of the display rectangle into
which the view can render, but which may be partially obscured by system
UI (such as the system notification area), or physical intrusions in
the display (e.g. overscan regions on television screens or phone sensor
housings).
read-onlyinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
render(
Scene scene) → void -
Updates the view's rendering on the GPU with the newly provided Scene.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited