json2ui library
A Flutter package for creating UI components from JSON with theming support
Classes
- AnimatedContainerBuilder
- Builder for creating AnimatedContainer widgets from JSON
- AnimationHandler
- Handler for creating animated widgets from JSON configuration
- ButtonThemeConfig
- Button theme configuration
- CardBuilder
- Builder for creating Card widgets from JSON
- CenterBuilder
- Builder for creating Center widgets from JSON
- ColumnBuilder
- Builder for creating Column widgets from JSON
- ContainerBuilder
- Builder for creating Container widgets from JSON
- ContainerThemeConfig
- Container theme configuration
- CustomCardBuilder
- Builder for creating CustomCard widgets from JSON
- ElevatedButtonBuilder
- Builder for creating ElevatedButton widgets from JSON with Mantine-style defaults
- GradientButtonBuilder
- Builder for creating GradientButton widgets from JSON
- JsonTheme
- Theme configuration for Json2UI widgets
- JsonWidgetBuilder
- Abstract base class for all JSON widget builders
- JsonWidgetFactory
- Factory class for creating Flutter widgets from JSON
- JsonWidgetRegistry
- Singleton registry for JSON widget builders
- JsonWidgetRenderer
- Renderer for creating themed Flutter widgets from JSON
- LottieBuilder
- Builder for creating Lottie animation widgets from JSON
- PropertyProcessor
- Property processor for transforming and validating widget properties
- PropertyTransformers
- Utility functions for common property transformations
- ResponsiveLayoutBuilder
- Builder for creating responsive layout widgets from JSON
- ResponsiveLayoutManager
- Responsive layout manager with Mantine-style breakpoint system
- RowBuilder
- Builder for creating Row widgets from JSON
- ShadowConfig
- Shadow configuration
- SizedBoxBuilder
- Builder for creating SizedBox widgets from JSON
- TextBuilder
- Builder for creating Text widgets from JSON
- TextThemeColors
- Text color configuration
- ThemingEngine
- Engine for applying themes to JSON-defined widgets
Enums
- ResponsiveBreakpoint
- Responsive breakpoints enumeration
Extensions
- ResponsiveContainerExtension on Container
- Extension methods for responsive containers
- ResponsiveWidgetExtension on Widget
- Extension methods for responsive widgets
Functions
-
initializeJson2UI(
) → void - Initializes the json2ui package with built-in widget builders
Typedefs
-
ActionHandler
= Future<
void> Function(String action, Map<String, dynamic> ? args) - Typedef for action handler callback
- PropertyAsyncTransformer = Future Function(dynamic value)
- Async property transformer function type
-
PropertyProcessorMiddleware
= Map<
String, dynamic> Function(Map<String, dynamic> properties) - Property processor middleware function type
- PropertyTransformer = dynamic Function(dynamic value)
- Property transformer function type
- PropertyValidator = bool Function(dynamic value)
- Property validator function type
Exceptions / Errors
- PropertyValidationException
- Exception thrown when property validation fails