flutter_json_render 0.4.1
flutter_json_render: ^0.4.1 copied to clipboard
Guardrailed JSON-to-Widget renderer for Flutter and Dart.
0.4.1 #
- Switched pub.dev publishing workflow to the official
dart-lang/setup-dartreusable workflow. - Updated publishing trigger strategy for trusted publisher tag-push flow.
0.4.0 #
- Added custom style authoring APIs:
JsonStyleDefinition.fromJson()JsonStyleDefinition.toJson()JsonStyleDefinition.merge()JsonCatalog.withStyle()JsonCatalog.withStyles()JsonCatalog.withStylesFromJson()
- Added style token support to prompt generation for richer LLM guidance.
- Expanded showcase app:
- Runtime custom style creation dialog (
Add Custom Style) - Startup custom style injection via
CUSTOM_STYLE_JSON - Auto stream/capture runtime flags for demo recording
- New streamed multi-component scenario (
component_stream)
- Runtime custom style creation dialog (
- Added custom style guide documentation:
docs/custom-style-guide.md
- Added component-stream GIF demo:
assets/gifs/component-stream-render.gif
- Updated README with custom style usage and streaming GIF examples.
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