flutter_json_render 0.3.0
flutter_json_render: ^0.3.0 copied to clipboard
Guardrailed JSON-to-Widget renderer for Flutter and Dart.
0.3.0 #
- Added style preset model with
JsonStyleDefinitionandJsonCatalog.styles - Added style-aware prompt generation via
JsonPromptOptions.selectedStyleId - Added optional spec-level style (
JsonRenderSpec.style) and style validation invalidateSpec - Added runtime style override support in
JsonRenderer(styleId: ...) - Extended render/action contexts with
styleId - Improved
Rowoverflow handling withoverflow: row|wrap|scrollandrunSpacing - Expanded showcase example with style preset selector (
clean,midnight,sunset) - Added style screenshots and updated README/pub.dev documentation
0.2.0 #
- Added JSON Patch support with
JsonPatchOperation,JsonPatchOp, andapplyJsonPatch - Added streaming compiler API
JsonSpecStreamCompilerfor JSONL full specs and incremental patch lines - Expanded
JsonCatalog.prompt()with richer schema metadata (JsonPropDefinition,JsonPromptOptions) - Enhanced standard component catalog definitions with prop schemas for stronger prompt generation
- Added a full multi-case
/exampleapp (counter, repeat/item scope, dynamic cond props, async actions, stream simulation) - Expanded test coverage for patching, streaming, and prompt generation
- Updated README with streaming and example usage docs
- Updated package metadata for publishing readiness
0.1.0 #
- Initial Flutter/Dart library implementation inspired by
vercel-labs/json-render - Added flat spec model (
JsonRenderSpec,JsonElement, actions/repeat support) - Added guarded catalog and registry APIs (
JsonCatalog,JsonRegistry) - Added
JsonRendererwith visibility, repeat, dynamic value resolution, and event-action dispatch - Added built-in standard component set for Material widgets
- Added spec validation API (
validateSpec) - Added widget and unit tests for rendering, action execution, visibility, and repeat