Responsive layout invariants shared by Ledger apps.
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
-
atMeasure(
BuildContext context, Widget control, {double most = fieldMeasure}) → Widget -
controlat the start of its slot, at mostmostacross, when keepsMeasure; as given under it. A slot narrower thanmost(a dialog's half) still holds it across. -
gutter(
BuildContext context) → double -
The page gutter at
context: 24 on a phone, 56 on the desktop. -
isWide(
BuildContext context) → bool - Whether the window is the desktop one.
-
keepsMeasure(
BuildContext context) → bool - Whether a control keeps to its own width here: from measuredFrom, outside a narrow preview. A button, a row of buttons and a stepper do (at the start of their slot, at most fieldMeasure across unless their words need more), so a wide column never draws one as a banner; under it they span their column, as a phone's block act does, and so do a sheet's and a dialog's acts at any width (the card is their measure).
-
measured(
BuildContext context, Widget field) → Widget -
fieldat its measure from measuredFrom (at the start of its slot, at most fieldMeasure across); across its column under it.
Constants
- fieldMeasure → const double
- The most a select, a sum's field, a stepper or a block act stands across from measuredFrom (unless its words need more): a blank sized to what goes in it, as a paper form's is, never the column or the page. A form gives it a cell of its grid (a half or a third of its column) and it stands at the start of the cell, up to this.
- hairline → const double
- A hairline rule's width: the one point the source draws every rule at, and the paper a knockout keeps round its words so no rule touches them.
- measuredFrom → const double
- The window width from which a form's short entries (a select, a sum) stand at their own measure instead of across their column: the rail's 600.
- minHitTarget → const double
- The touch-target floor.
- sheetMeasure → const double
- A bottom sheet's widest (Material's 640): on a tablet it stands as a card centred over the page, never stretched across it.
- wide → const double
- The width from which the app is the desktop one, as the source switches at 1024: the sidebar replaces the tab bar and the top bar, the gutter grows to 56, the figures grow, a sheet becomes a centred dialog and a detail's way back a crumb over its title.