Skip to content

Digits

Large numerals for clocks, timers, and counters, each character drawn five rows tall. text can contain the digits 0 to 9, :, ., -, and spaces.

Import: package:fleury/fleury.dart, or package:fleury/fleury_core.dart in browser code.

Digits('12:34', color: theme.colorScheme.primary)

Any other character in text throws an ArgumentError when the widget is laid out.

ParameterTypeDefaultDescription
textStringrequiredThe characters to show: the digits 0 to 9, :, ., -, and spaces.
style:CellStyle?—Complete cell style override for lit digit segments.
color:Color?—Foreground color used when style is null.
offGlyph:String?—When set, “off” segments are painted with this dim glyph (e.g. · or ░) for the two-tone calculator / flip-clock look, and so the digit shape reads on bright backgrounds. Default null leaves them blank.
semanticLabel:String'Digits'Label exposed through the semantic app graph.

Digits is defined in packages/fleury/lib/src/catalog/digits.dart.

Category: Charts & meters · All widgets