Fluent2ChromeMetrics class abstract final

The bars, panes and parts of Fluent 2's chrome, in logical pixels.

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

Constants

accessoryGap → const double
What docks over the tab bar stands 8 over it.
barBottomWide → const double
The room under the desktop bar's words.
barControl → const double
A bar's command: Fluent's medium icon-only subtle button, 32 square with its glyph 20, standing in a 40 hit box on a phone.
barGap → const double
The room between a phone top bar's controls.
barHeight → const double
A phone top bar: 56 tall (Fluent 2 Android's app bar), its parts 4 in from the gutter's edge (the back's 40 hit box carries its own room), 8 between its controls.
barTopWide → const double
The desktop bar: 28 over its words and 16 under them, in the page.
captionGap → const double
The caption over a desktop title, 4 above it.
crumbGap → const double
The room between the crumb's glyph and its word, and under the crumb.
crumbGlyph → const double
The crumb over a desktop detail's title: its glyph 16, 4 from its word; the title 4 under it.
dialogActionsGap → const double
The room over a dialog's actions.
dialogGap → const double
The room between a dialog's title and its body.
dialogMargin → const double
The most room a dialog keeps from the window's edges.
dialogPadding → const double
The room round a dialog's parts.
dialogWidth → const double
The desktop dialog (DialogSurface): at most 600 wide, 24 round its parts, its corners 8, 48 from the window's edges at most; its title 8 over the body, its actions 24 under it, 8 apart.
drawerPadding → const double
The room round a desktop drawer's header and body.
drawerWidth → const double
The desktop drawer (OverlayDrawer, size medium): 592 wide at the window's end, 24 round its header and body.
fab → const double
The shell's act on a phone: Fluent 2 mobile's floating action button, 56 across with its glyph 24, 16 from the screen's end and over the tab bar; with a word it is a pill 48 tall (the extended button).
fabExtended → const double
The height of the floating action button with a word (the extended pill).
fabGlyph → const double
The floating action button's glyph size.
fabInset → const double
The floating action button's room from the screen's end.
focusInner → const double
The focus indicator's inner stroke.
focusOuter → const double
Fluent's focus indicator: a 2 stroke in strokeFocus2 on the control's own edge with a 1 stroke of strokeFocus1 inside it.
gutter → const double
The page gutter: 16 on a phone, 24 on the desktop.
gutterWide → const double
The page gutter on the desktop.
hairline → const double
A hairline: Fluent's strokeWidthThin.
handleHeight → const double
A bottom sheet's handle, its height.
handleTop → const double
The room over a bottom sheet's handle.
handleWidth → const double
A bottom sheet's handle, its width.
layerRadius → const double
The content layer's top-start corner beside the nav pane.
A menu item's least height under a pointer.
The room between a menu item's parts.
The room round a menu item's parts: Fluent's spacingHorizontalSNudge (6), one of its nudges between the 4-pt steps.
A menu item's least height under a finger: the finger's whole target, so a row's face fills it (ui_core keeps a face its own size inside a larger target) and the row's fill stands as far from the menu's top and foot as from its sides.
The room at either side of a menu item's words.
The widest a menu stands.
The narrowest a menu stands.
A menu (MenuPopover): 4 round its items, at least 138 and at most 300 wide, its corners 4; an item (MenuItem) at least 32 tall, 6 round its parts, 4 between them (its glyph 20), its words and its secondary words each 2 in from their sides (content's padding). On a phone an item stands at least 44 tall (the touch floor).
pageBottom → const double
The room under a page's last part: 24 on a phone, 40 on the desktop.
pageBottomWide → const double
The room under a desktop page's last part.
pageMaxWidth → const double
The widest a desktop page's column runs (DERIVED: a reading measure for a single column of cards and forms).
paneHead → const double
The pane's head: the hamburger (a 40 square subtle button) and the app's name, 48 tall; the content layer's top-start corner 8, the layer standing 0 from the pane and 0 from the window's top.
paneIndicatorHeight → const double
The nav pane's selection indicator, its height.
paneIndicatorWidth → const double
The nav pane's selection indicator, its width.
paneInset → const double
The room round the nav pane's items.
paneItem → const double
A nav pane item's height.
paneItemEnd → const double
The room at a nav pane item's end.
paneItemGap → const double
The room between a nav pane item's glyph and its word.
paneItemStart → const double
The room at a nav pane item's start.
paneRail → const double
The nav pane's width collapsed to a rail.
paneWidth → const double
The desktop nav pane (NavDrawer): 260 wide, collapsed to a 48 rail by its hamburger; its items 40 tall (10 over and under a 20 line), 10 in at their start and 8 at their end, their glyph 20 and 16 before the word, 4 corners; the selection indicator 4 by 20 at 16 before the item's start, in the brand.
sheetBodyGap → const double
The room between a sheet's head and its body.
sheetBottom → const double
The room at a bottom sheet's foot.
sheetFootGap → const double
The room between a sheet's body and its foot.
sheetHead → const double
A sheet's head: at least 48 tall; its body 8 under it, its foot 16 under that.
sheetMaxFraction → const double
The most of the screen's height a bottom sheet takes.
sheetRadius → const double
A phone's bottom sheet: its top corners 8, its handle 36 by 4 at 8 under its top, its parts 16 in; it stands at most 90% of the screen.
sheetSide → const double
The room at a bottom sheet's sides.
sheetTop → const double
The room at a bottom sheet's top.
stateGap → const double
The room between a state's glyph and its title.
stateGlyph → const double
A state's glyph (48) 16 over its title, the words 4 under the title, the act 20 under the words; at most 360 wide.
stateWidth → const double
The widest a state's words run.
tabBarHeight → const double
The phone tab bar: 56 over the device inset, its glyph 24 (Fluent's mobile tab bar), 2 over its word, the bar's top a hairline.
tabGap → const double
The room between a phone tab's glyph and its word.
tabGlyph → const double
A phone tab's glyph size.
tabLabelSide → const double
The least room each side of a phone tab's word, within its tab: the end tabs' words stand at least this far from the screen's edges.
tabMarkHeight → const double
The selected tab's mark: a pill 4 tall and 16 wide (DERIVED from Fluent's nav indicator, 4 by 20, laid along the bar's top edge).
tabMarkWidth → const double
The selected tab's mark, its width.
toastGap → const double
The room under a toast, over what stands at the foot.
toastGlyph → const double
A toast's glyph size.
toastPadding → const double
A toast (Toast): 12 round its parts, 292 wide on the desktop (the phone's gutter to gutter), its corners 4, 16 above what stands at the foot; its glyph 16, 8 before its title.
toastWidth → const double
A toast's width on the desktop.