rulecms_widget 0.4.0 copy "rulecms_widget: ^0.4.0" to clipboard
rulecms_widget: ^0.4.0 copied to clipboard

Flutter SDK for RuleCMS — fetch published/draft widgets by token + key and render the layout tree.

Changelog #

0.4.0 #

  • Overlay layers: render overlayLayers over the base widget box, matching @rulecms/widget-react 22.17.0 as closely as Flutter allows. Layers use Stack + Positioned.fill; CSS isolation is omitted (a Stack is already local). pointer-events: none maps to IgnorePointer.
  • Widget-level hide via hide-component-3-resolutions on containerAttributes (required by the overlay contract). Compose mode ignores both hide and layers.

0.3.0 #

  • Host mounts argument: register Flutter widget factories by name for the Custom (r-mount) slot, matching @rulecms/widget-react 22.16.0.

0.2.1 #

  • Export RenderComponents so hosts (including rulecms-app Preview) can pin deviceDisplayType without going through fetch.

0.2.0 #

  • Accept componentProps on RuleCMSWidget and resolve widgetInstanceProps by column id or a /-path of enclosing collection columns (longest tail match wins).
  • Warn in debug when a componentProps key addresses no component in the widget.
  • Honour library resolveNoContainer / noContainer / resolveRendersOwnElement so column box styles wrap only when the card asks for it.
  • Pass host className (from css-classes-3-resolutions) to the card when it renders its own element; otherwise keep it on a RuleCMSHostClassName wrapper.
  • Extend LibraryComponentBuildContext with className, widgetInstanceProps, and children.
  • Export MappedColumnStyles, ComponentPropsMap, and the resolver helpers.

0.1.0 #

  • Initial Flutter SDK mirroring @rulecms/widget-react fetch + layout renderer.
  • RuleCMSWidgetProvider / RuleCMSWidget (client-fetch and pre-fetched modes).
  • Same published vs dev. token URL routing as widget-react.
  • Device resolution for *-3-resolutions attributes.
  • MVP style mapping (margin, padding, colors, font, flex alignment, hide).
  • Component library registration contract.
0
likes
150
points
129
downloads

Documentation

API reference

Publisher

verified publisherrulecms.com

Weekly Downloads

Flutter SDK for RuleCMS — fetch published/draft widgets by token + key and render the layout tree.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http

More

Packages that depend on rulecms_widget