Canvas sizing by scale mode.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Static Methods
-
autoScaleHeight(
Node canvas, double width) → double -
The height an autoScale
canvastakes when scaled towidth: its design height times the scale, after its max width cap. -
breakpointWidth(
BuildContext context, BoxConstraints constraints) → double - The width breakpoints are picked by: the width the widget is laid out in, so a layout embedded in a 390 wide frame inside a 1440 wide window shows its 390 canvas. Only when it's unbounded (in a horizontal scroll view) does the screen width stand in for it.
-
designSize(
Node canvas) → Size -
The design size of
canvas. -
resolve(
Node canvas, BoxConstraints constraints, {CanvasSizing sizing = CanvasSizing.fill}) → CanvasBox -
The box
canvastakes inconstraintsundersizing. -
scaleModeOf(
Node canvas) → ScaleMode -
The scale mode of
canvas. -
sizesToContent(
Node canvas) → bool -
Whether
canvashugs its content vertically instead of using its design height.