libstp.ui.widgets¶
UI Widgets - Type-safe widget definitions for dynamic screens.
These dataclasses serialize to JSON and are rendered by Flutter.
Classes¶
Base class for all widgets. |
|
Text display widget. |
|
Material icon widget. |
|
Vertical spacing widget. |
|
Horizontal divider line. |
|
Colored pill/badge with text (e.g., "LIGHT ON"). |
|
Animated circle with icon inside. |
|
Highlighted hint box (e.g., "Press button when ready"). |
|
Distance value display badge. |
|
Key-value results table. |
|
Clickable button. |
|
Slider input for numeric values. |
|
Checkbox toggle. |
|
Dropdown selection. |
|
Touch-friendly numeric keypad (0-9, ., backspace). |
|
Large numeric display with optional +/- buttons. |
|
Text input field. |
|
Large sensor value display. |
|
Real-time sensor line graph. |
|
Animated light bulb visualization. |
|
Robot with spinning wheels visualization. |
|
Circular slider for motor/servo control. |
|
Circular loading spinner. |
|
Animated pulsing arrow. |
|
Robot driving on track animation. |
|
Animated measuring tape. |
|
Static scatter/line chart for calibration data. |
|
Horizontal layout - children side by side. |
|
Vertical layout - children stacked. |
|
Center children vertically and horizontally. |
|
Card container with optional title. |
|
Left-right split layout. |
|
Expand child to fill available space. |
Module Contents¶
- class libstp.ui.widgets.HintBox¶
Bases:
WidgetHighlighted hint box (e.g., “Press button when ready”).
- class libstp.ui.widgets.NumericKeypad¶
Bases:
WidgetTouch-friendly numeric keypad (0-9, ., backspace).
- class libstp.ui.widgets.NumericInput¶
Bases:
WidgetLarge numeric display with optional +/- buttons.
- class libstp.ui.widgets.CalibrationChart¶
Bases:
WidgetStatic scatter/line chart for calibration data.
Shows collected sample points with horizontal threshold lines.