Skip to content
pubscout

stac

1.6.0, released 2 months ago by stac.dev

A Server-Driven UI framework for Flutter that renders JSON payloads into native widgets.

WASM-readyRock solid
$ flutter pub add stac
Source repository

What it does

Stac allows developers to build and update mobile or web user interfaces in real time via JSON payloads delivered from a server. It uses a Dart DSL to write UIs that compile into JSON and render natively on the client at runtime.

AI-written summary of version 1.6.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to ship UI changes and updates instantly without going through app store review cycles.
  • You want to perform A/B testing or personalize layouts dynamically from a backend schema across Android, iOS, and Web.

Skip it when

  • Your application requires highly complex custom native rendering logic that cannot easily be serialized into JSON.
  • You need completely offline-first operations with zero network dependency for dynamic screen updates.

Strengths

  • Instant over-the-air UI updates without updating the native client app.
  • Familiar Dart DSL syntax that mirrors writing traditional Flutter code.
  • Built-in network requests, form validation, and screen caching support.

Weaknesses

  • Dependent on a backend infrastructure to supply the UI JSON schemas.
  • Limited to the prebuilt components and registered custom widgets supported by the Stac framework.

Setup

Kind
Flutter widgets
Effort
Medium
Code generation
Yes (build_runner)
Direct dependencies
9

Requires initializing Stac in main.dart via Stac.initialize() and setting up server endpoints to serve the dynamic UI JSON payloads.

void main() async {
  await Stac.initialize();
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Stac(routeName: 'get_started'),
    );
  }
}

Alternatives

Packages that do the same job and could replace stac.

Works with

Packages commonly used together with stac: ones it builds on, ones built on it, and its own family.