Widget Categories
Basic Widgets
Fundamental UI elements for displaying content:- TextWidget - Display text with customizable fonts, colors, and styles
- CircleWidget - Draw circular shapes with click and hover support
- LineWidget - Draw lines between two points with configurable thickness
Interactive Widgets
Widgets that respond to user input:- ButtonWidget - Clickable buttons with hover effects and styling
- TextInputWidget - Text input fields with focus management
- SliderWidget - Draggable sliders for selecting numeric values
- RadioButtonWidget - Radio button groups for single selection
- DropdownWidget - Dropdown menus for selecting from multiple options
Progress Indicators
Widgets for showing progress and status:- ProgressBarWidget - Horizontal progress bars
- CircularIndicatorWidget - Circular progress indicators
Layout Widgets
Widgets for arranging other widgets:- Row & Column - Arrange children horizontally or vertically
- Center - Center a child widget
- Padding - Add space around a widget
- Expanded - Expand to fill available space
- SizedBox - Create fixed-size spacing
Base Widget Class
All widgets inherit from theWidget base class, which provides:
Common Patterns
Factory Functions
Most widgets provide factory functions for easy creation:Signals for Events
Interactive widgets use signals to handle events:Style Configuration
Many widgets support fluent style configuration:Preset Configurations
Widgets often provide preset configurations for common use cases:Widget Manager
Widgets are automatically added to the widget manager when created withaddToManager = true (the default for most factory functions):
Next Steps
- Learn about Basic Widgets for displaying content
- Explore Interactive Widgets for user input
- Master Layout Widgets for arranging your UI