bounds property

Rect bounds
final

The area of the flutter view occupied by this display feature, measured in logical pixels.

On devices with two screens, the Flutter view spans from the top-left corner of the left or top screen to the bottom-right corner of the right or bottom screen, including the visual area occupied by any display feature. Bounds of display features are reported in this coordinate system.

For example, on a dual screen device in portrait mode:

  • Rect.left gives you the size of left screen, in logical pixels.
  • Rect.right gives you the size of the left screen + the hinge width.

Implementation

final Rect bounds;