restage_core 1.0.2
restage_core: ^1.0.2 copied to clipboard
Cross-platform widget primitives (Container, Column, Row, Text, Image, and more) — a curated Remote Flutter Widgets (RFW) catalog for server-driven Flutter UI.
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).
Part of Restage, server-driven UI for Flutter. Extend this
catalog with your own design-system widgets via @RestageWidget.
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. Authoring tools read 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.