restage_core 1.0.2 copy "restage_core: ^1.0.2" to clipboard
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.

example/README.md

restage_core example #

restage_core is the curated cross-platform RFW widget catalog — layout, structure, and decoration primitives (Container, Column, Row, Stack, Text, Image, and more) for server-driven Flutter UI.

You author a surface in ordinary Flutter using these primitives, then a build step lowers it against the catalog into an inert render blob.

Author with core primitives #

import 'package:flutter/material.dart';
import 'package:restage/restage.dart';

@PaywallSource(id: 'pro')
class ProSurface extends StatelessWidget {
  const ProSurface({super.key});

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: const EdgeInsets.all(24),
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: const [
          Text('Welcome'),
          SizedBox(height: 8),
          Text('Everything you need, in one place.'),
        ],
      ),
    );
  }
}

A build step lowers this standard Flutter tree to a render blob:

dart run build_runner build

The same primitives compose any surface — paywalls, onboarding, messages, or surveys. See the package README for the full widget set, and apps/examples for complete, runnable surfaces.

0
likes
160
points
380
downloads

Documentation

API reference

Publisher

verified publisherrestage.dev

Weekly Downloads

Cross-platform widget primitives (Container, Column, Row, Text, Image, and more) — a curated Remote Flutter Widgets (RFW) catalog for server-driven Flutter UI.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#server-driven-ui #remote-ui #flutter

License

BSD-3-Clause (license)

Dependencies

flutter, intl, restage_shared, rfw, rfw_catalog_schema

More

Packages that depend on restage_core