MinimalCard class
The container for grouped content: the surface inside a 1 px hairline on the theme's card radius, and never a shadow — Minimal separates what sits on the page with rules, not elevation.
flat: true is the quiet panel: the same hairline around the
MinimalThemeData.muted fill, for a strip of figures or an aside that
should read as a well rather than a sheet of paper. selected: true
draws the hairline in the ink, MinimalThemeData.foreground, on the same
face, no tint (the picked plan, the current workspace). With onPressed
the whole card is one
control with the system's press wash and focus ring.
Rows, row groups and gutter sections inside a card read it
(MinimalCard.rowInsetOf) and stand their text at inset from the card's
edge whatever the card's own padding: in a padless card they pad
themselves, in a padded one they take no side padding of their own.
Never a wrapper around a page's main list; a short settings-style group
of rows stands in a card through MinimalListSection(inset: true).
style dresses one card, components.card every one, resolved with
WidgetState.selected when chosen: fill, edge or side, overlay, shape
(else shapes.medium) and padding (under padding). t.rim
is its rim.
MinimalCard(child: summary)
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- MinimalCard
Constructors
- MinimalCard({Key? key, required Widget child, EdgeInsetsGeometry? padding, VoidCallback? onPressed, bool flat = false, bool? selected, String? semanticLabel, MinimalStyle? style, FocusNode? focusNode, bool autofocus = false})
-
A card around
child.const
Properties
- autofocus → bool
-
Whether it takes keyboard focus when it first appears.
final
- child → Widget
-
Its content.
final
- flat → bool
-
The quiet panel: MinimalThemeData.muted inside the hairline.
final
- focusNode → FocusNode?
-
Its focus node, for a caller that moves focus to it; null keeps one
of its own.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onPressed → VoidCallback?
-
Makes the whole card one control. Null is a static card.
final
- padding → EdgeInsetsGeometry?
-
The room inside the rim; null takes the style's, else inset all
round.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selected → bool?
-
Whether this card is the chosen option of a set: true draws its
hairline in the ink and announces selected, false announces
an unselected option, null (the default) is a card that is not one of
a set.
final
- semanticLabel → String?
-
What a screen reader announces for a tappable card whose content says
nothing in words.
final
- style → MinimalStyle?
-
This card's style, over
components.card.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
Static Methods
-
contains(
BuildContext context) → bool -
Whether
contextstands inside a MinimalCard. -
groundOf(
BuildContext context) → Color? -
The fill of the card around
context— what a ring or a cut-out standing in the card paints to read as the card's own ground. Null outside a card. -
rowInsetOf(
BuildContext context) → EdgeInsets? -
The side padding a row standing in the card around
contexttakes so its text sits at inset from the card's edge: inset in a padless card, nothing in a card already padded by inset. Null outside a card.