restage_core 1.0.0
restage_core: ^1.0.0 copied to clipboard
Cross-platform widget primitives (Container, Column, Row, Text, Image, and more): a curated Remote Flutter Widget (RFW) catalog for server-driven Flutter UI. Widget metadata lives in lib/registry.dart [...]
restage_core #
A curated Remote Flutter Widget (RFW) catalog of cross-platform widget
primitives for server-driven Flutter UI — the restage.core library (layout,
structure, and decoration: Container, Column, Row, Stack, SizedBox, Padding,
Center, Text, Image, and more — 54 widgets in all).
The package provides:
- Catalog metadata — the curated widget set + per-widget metadata, authored
in
lib/registry.dart(kRegistry) and mirrored tolib/src/widget_catalog/catalog.json. The editor reads the registry; the build-time code generator reads the JSON. - RFW registration —
lib/src/registration.g.dartis a plainrfwLocalWidgetBuildermap that renders the catalog's widgets; any RFW host can use it. - A few compiled-in catalog widgets — small composites the package ships as
real classes for behavior RFW can't express declaratively: the motion helpers
(
RestageMotion,RestageFadeIn,RestagePulse,RestageStagger, and theRestageSpringsubstrate) and the number/price formatters (RestagePrice,RestageFormattedNumber). Standard Flutter widgets (Container, Text, …) are mapped through the catalog, not re-declared here — you author surfaces in ordinary Flutter syntax.
The catalog is surface-general: the same primitives compose paywalls, onboarding, in-app messages, surveys, or any other server-driven UI surface.
Status #
Stable — 1.0.0.
License #
BSD-3-Clause — see LICENSE.