LcdDisplayFace class final

The Retro LCD / VFD display face.

Inheritance

Constructors

LcdDisplayFace({required Color panel, required Color bezel, Color? ghost, bool vfd = false, int widthPermille = 800, SegmentGlyphPainter segments = const SegmentGlyphPainter()})
const

Properties

bezel → Color
The frame around the panel.
final
clearStagger → Duration
Delay between characters when the whole line clears, right to left (Retro long-press clear: 15 ms per digit); zero = no stagger.
no setteroverride
ghost → Color?
Unlit segments; null draws none.
final
glyphOff → Duration
How long an unlit glyph takes to disappear (Retro: off 50 ms).
no setteroverride
glyphOn → Duration
How long a newly lit glyph takes to appear (Retro: segments on 30 ms).
no setteroverride
hashCode → int
The hash code for this object.
no setteroverride
panel → Color
The panel (palette surface).
final
panelColor → Color
The panel colour the display text sits on (its contrast backdrop).
no setteroverride
panelMargin → EdgeInsets
Space between the display's edges and the panel.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
segments → SegmentGlyphPainter
Segment geometry.
final
vfd → bool
Vacuum-fluorescent look: lit segments glow.
final
widthPermille → int
wdth axis of the fallback font × 10 (750 = 75 %).
final

Methods

drawsChar(int codeUnit) → bool
Whether this face draws the UTF-16 code unit codeUnit itself.
override
lerpTo(DisplayFace other, double t) → DisplayFace
This face t of the way to other (theme transitions between two themes of the same family); switches at the midpoint by default.
override
maskedSpan(String text, TextStyle style) → TextSpan
text in style with the face-drawn characters transparent: the same layout as TextSpan(text: text, style: style).
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paintGlyphs(Canvas canvas, TextPainter painter, String text, {required Offset origin, required Color color, required double fontSize, int start = 0, int? end, double opacity(int index)?}) → void
Paints the face-drawn characters [start, end) of text, which painter has laid out (with maskedSpan) at origin, in color. opacity (per character index) fades glyphs in or out.
override
paintPanel(Canvas canvas, Rect rect) → void
Paints the panel filling rect.
override
textStyle(TextStyle base) → TextStyle
The style the font-drawn glyphs use, from the display's base style (e.g. a condensed width axis). Measuring and painting both use it.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

clearStep → const Duration
Long-press clear: per-character delay, right to left (§4.4).
segmentOff → const Duration
Segments off (motion brief §2.4 segmentOff).
segmentOn → const Duration
Segments on (motion brief §2.4 segmentOn).