restage_cupertino 1.0.2 copy "restage_cupertino: ^1.0.2" to clipboard
restage_cupertino: ^1.0.2 copied to clipboard

Cupertino (Apple HIG) widgets — a curated Remote Flutter Widgets (RFW) catalog for building server-driven Flutter UI that renders as real Flutter widgets.

example/README.md

restage_cupertino example #

restage_cupertino is the curated Cupertino (Apple HIG) RFW widget catalog — CupertinoButton, navigation/page scaffolding, switches, sliders, pickers, text fields, and more — for server-driven Flutter UI. Sibling to restage_core and restage_material.

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

Author with Cupertino widgets #

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

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

  @override
  Widget build(BuildContext context) {
    return Column(
      mainAxisAlignment: MainAxisAlignment.center,
      children: [
        const Text('Go Pro'),
        CupertinoButton.filled(
          onPressed: paywallPurchase(slot: 'annual'),
          child: const Text('Start free trial'),
        ),
      ],
    );
  }
}

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

dart run build_runner build

The same widgets 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
364
downloads

Documentation

API reference

Publisher

verified publisherrestage.dev

Weekly Downloads

Cupertino (Apple HIG) widgets — a curated Remote Flutter Widgets (RFW) catalog for building server-driven Flutter UI that renders as real Flutter widgets.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

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

License

BSD-3-Clause (license)

Dependencies

flutter, restage_core, restage_shared, rfw, rfw_catalog_schema

More

Packages that depend on restage_cupertino