Badge class

Compact status chip.

Inheritance

Constructors

Badge(String label, {BadgeTone tone = BadgeTone.info, String? backgroundColor, String? foregroundColor, double fontSize = 8, EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 8, vertical: 3)})
Badge API.
const

Properties

backgroundColor → String?
backgroundColor API. Overrides tone wash.
final
flowChildren → List<Widget>?
Children MultiPage should flow individually (vertical columns).
no setterinherited
fontSize → double
fontSize API.
final
foregroundColor → String?
foregroundColor API. Overrides tone ink.
final
hashCode → int
The hash code for this object.
no setterinherited
label → String
label API.
final
padding → EdgeInsetsGeometry
padding API.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tone → BadgeTone
tone API.
final

Methods

layout(Context context, BoxConstraints constraints) → PwBox
layout API.
override
layoutSpan(Context context, BoxConstraints constraints) → SpanSlice?
Split across pages when constraints has a bounded height.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paintStamp(Context context, double pageW, double pageH) → void
Stamp paint. The default lays out and paints glyph by glyph.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited