SheenLayout class abstract final Layout

Widths for larger windows (tablets, desktop, the web).

On a phone, content keeps 16 pt sides; on a wider window it is centred at a readable width while photos, maps and backgrounds still run edge to edge.

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

columns(double width) → int
Cards across in a grid: two from splitMin, else one.
hasSidePane(double width) → bool
Whether a window width wide keeps a side pane (paneMin).
inset(double width, {double max = readable, double min = 16}) → double
The side inset that centres content of at most max in a window width wide, never under min.
isWide(double width) → bool
Whether a window width wide takes the wide layouts (splitMin).
tiles(double width) → int
Photo tiles across: four from paneMin, three from splitMin, else two.

Constants

paneMin → const double
From this width (a tablet in landscape) a page keeps a side pane.
readable → const double
One column of content: lists, forms, long text.
sheet → const double
The widest a sheet grows.
splitMin → const double
From this width (a tablet, not Split View or Slide Over) use the wide layouts: the tab bar at the top, a list beside its detail, forms in a centred sheet.
wide → const double
Grids: cards two across, photo tiles.