StatusChrome class

The chrome, drawn over a screen of device's logical size.

scale is what the screen has been drawn at — 1 where the capture is shown at its own size, less where a store frame has fitted it onto a canvas. Every measurement below is in the device's own units and reaches the canvas through this one multiplication, which is what keeps a body drawn at 0.8 looking like the same phone as one drawn at 1.

Both brightnesses name the icons, following SystemUiOverlayStyle — Brightness.dark is dark icons, for a light app. A scenario records what the app declared at capture time, so a set whose app switches to a dark screen gets light chrome on that shot and dark chrome on the others.

Inheritance

Constructors

StatusChrome({Key? key, required Device device, double scale = 1, Brightness statusBrightness = Brightness.dark, Brightness navBrightness = Brightness.dark})
const

Properties

device → Device
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scale → double
final
statusBrightness → Brightness
final

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

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