restage_material

pub package ci license

A curated Remote Flutter Widget (RFW) catalog of Material Design widgets for server-driven Flutter UI: the restage.material library (buttons, Scaffold, AppBar, Card, ListTile, chips, selection controls, and more; 45 widgets). Sibling to restage_core and restage_cupertino.

Part of Restage, server-driven UI for Flutter. Extend this catalog with your own design-system widgets via @RestageWidget.

The package provides catalog metadata (lib/registry.dart kRegistry, mirrored to lib/src/widget_catalog/catalog.json), an RFW LocalWidgetBuilder registration map (lib/src/registration.g.dart), and a set of compiled-in catalog widgets it ships as real classes:

  • Interactive composites that own gesture/animation logic RFW can't express declaratively: RestageModalSheet, RestageDraggableSheet, RestagePager, RestageDropdown, RestageRadioGroup, RestageSegmentedButton, RestageToggleButtons.
  • Domain widgets: Package (a product/plan card) and ExpressCheckoutButton.

Standard Material widgets are mapped through the catalog, not re-declared here. The catalog is surface-general: the same widgets compose any server-driven UI surface.

License

BSD-3-Clause. See LICENSE.

Libraries

library_registration
Library registration entry point for restage.material — exposes a LocalWidgetLibrary that the SDK runtime registers with rfw at startup.
registry
registry_curation
Curation file for the restage.material widget library — Material design widgets curated for paywall composition.
restage_material
Material design widgets for Restage paywalls. Authoritative metadata lives in registry.dart (kRegistry); the runtime registers its widgets with rfw via library_registration.dart (buildMaterialWidgetLibrary). Both are read by codegen, the editor, and the SDK runtime.