Skip to main content

sdui_flutter_sanity 0.3.0 copy "sdui_flutter_sanity: ^0.3.0" to clipboard
sdui_flutter_sanity: ^0.3.0 copied to clipboard

A Server-Driven UI Flutter package powered by Sanity.io headless CMS with realtime config updates.

0.3.0 #

  • CLI Code Generator: Added interactive code generator (dart run sdui_flutter_sanity:generate) to scaffold Flutter custom components, matching Sanity Studio TypeScript schemas, and custom action handlers in a single command.
  • Sanity Seed Generator: Added s / seed CLI option to generate a ready-to-import .ndjson starter dataset containing sample home and catalog pages using all built-in components.
  • Action Dispatch Helper: Added SduiEngine.handleAction(context, action) for clean action dispatching directly from custom widgets.
  • BREAKING: Replaced String action strings with a typed SduiAction model. Custom SduiActionHandler implementations must now accept SduiAction instead of String.
  • BREAKING: ComponentRegistry is now an instance-based class (accessible via SduiEngine.registry) to ensure test isolation.
  • Fixed a critical HiveError crash occurring on hot-restarts due to state leak in SduiEngine.
  • Fixed a silent socket leak in SanityRealtimeListener where old SSE connections were kept alive.
  • Fixed UiNode ignoring the supportedVersion configuration.
  • Added variant support to the default button component (elevated, outlined, text).
  • Added fit support to the default image component.
  • The default text component is now fully aware of the app's ThemeData (e.g., Theme.of(context).textTheme).
  • Added an optional scrollable flag to SduiView (defaults to true).
  • Concurrency Protection: Guarded SduiEngine.initialize with an internal Completer to prevent race conditions during concurrent initialization.
  • Stream Lifecycle Hardening: Improved ConfigController stream teardown and SSE connection cleanup on stream cancel.
  • Network Resilience: Added HTTP request timeout (10s) and slug validation regex in SanityClient to guard against network hangs and injection.
  • Cache Safety: Added Hive.isBoxOpen guards in ConfigCache to prevent uninitialized access errors.
  • Enhanced test coverage and comprehensive example application revamp.

0.2.0 #

  • BREAKING: Completely redesigned Sanity reference schemas for a better, strongly-typed editing experience.
  • Features individual strongly-typed schemas (e.g., textComponent, imageComponent, columnComponent).
  • Updated UiNode parsing logic to natively support Sanity polymorphic array blocks.

0.1.0 #

  • Initial release.
0
likes
130
points
130
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Server-Driven UI Flutter package powered by Sanity.io headless CMS with realtime config updates.

Homepage
Repository (GitHub)
View/report issues

Topics

#ui #cms #sanity #server-driven-ui

License

MIT (license)

Dependencies

cached_network_image, flutter, hive, hive_flutter, http, url_launcher

More

Packages that depend on sdui_flutter_sanity