NeumorphicRow class
A row on the 12-column grid: NeumorphicRow(spans: [7, 5], children: [a, b]). From 1024 wide the sections sit side by side
and share a height, with 28 gutters, the air a soft shadow needs. Below that they stack with 28 between. It is the only
layout decision a page makes; a list beside the item it opens brings it down to a tablet with from. Spans are
shares of the row: [6, 6] and [1, 1] are both halves, and the row is always filled. Tab walks each section to its end before the next.
NeumorphicRow(spans: [8, 4], children: [Text('Main'), Text('Aside')])
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- NeumorphicRow
Constructors
-
NeumorphicRow({Key? key, required List<
int> spans, required List<Widget> children, NeumorphicWindow? from}) -
Creates a NeumorphicRow.
const
Properties
-
children
→ List<
Widget> -
The content widgets, in reading order.
final
- from → NeumorphicWindow?
-
Below the desk, the narrowest the row itself may be, as a window class of its own width, for its sections to sit
side by side: NeumorphicWindow.medium for a list beside the item it opens, so a tablet's page (600 wide and up,
past its rail) shows both and a choice never changes a pane below the fold, while a narrower one stacks rather
than squeeze each section under a phone's column. Null, the default: side by side on the desk only (from
neumorphicDesktopBreakpoint, 1024).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
spans
→ List<
int> -
Each child's share of the row, in columns of the 12-column grid when they add up to 12; a child without one takes 1.
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.
override
-
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