models/widget_response library
Models for parsing agent JSON responses into widget data.
Classes
- CommonParams
- Common parameters shared by all widget types.
- LayoutConfig
- Layout configuration for responsive widget sizing.
- ThemeOverride
- Theme override for individual widgets.
- WidgetEntry
- A single widget entry from the agent response.
- WidgetResponse
- The full agent response containing a list of widgets.
Functions
-
parseColorSchemeFromJson(
Map< String, dynamic> ? json) → ColorScheme? - Parses a color_palette JSON map into a Flutter ColorScheme.