Skip to content

If you come from Flutter, Flux’s declarative component model feels familiar: a tree of components, recomputed from state. The differences are structural — Flux splits layout into a small set of primitives, keeps state in signals, and ships native code instead of a rendering engine. This guide maps the concepts and names the gaps plainly.

Flutter Flux Notes
Column(children: [...]) Column gap replaces SizedBox spacers between children
Row(children: [...]) Row Same, horizontal
Text('...') Text Interpolate signals with {expr}
ElevatedButton / TextButton Button onPress takes a Handler closure
TextField TextInput Controlled: text: $binding, onChangeText
Image.asset(...) Image source takes an asset path
Navigator / MaterialPageRoute Router + Screen RouterNav.navigate swaps screens
Stack Stack Same name, same idea
GridView Grid columns and gap props
Scaffold Compose it Assemble a Column/Row root yourself
Container / Padding Component props + gap No standalone padding widget
Flutter Flux
StatefulWidget + setState compo with state signals; assign in a handler
ValueNotifier / ChangeNotifier A signal; derived let replaces Selector
InheritedWidget / Provider A store compo lifted above consumers; values as props
FutureBuilder A capability call returning a result cell (Ready/Pending/Error)
StreamBuilder Not yet; async data flows through capabilities

The mental shift: no rebuild-in-progress dance. Assignment writes a signal, the dirty set is computed from the dependency graph, and only affected leaves recompose. See state management.

Flutter Flux
ListView over data ForEach(tasks, key: fn(t) { t.label }) { item => … }
Key / ValueKey The key function argument
Mutate list + setState tasks.append(...) / tasks.remove(task) / tasks.clear()

Keyed reconciliation matches children by node ID, so rows reorder and patch in place — scroll positions and field contents survive edits.

  • The full widget catalog. Only stdlib primitives exist; richer themed widgets (cards, chips) are a design-tokens/theming roadmap item.
  • Implicit animations. Animation primitives are a roadmap item; today you drive values through signals. An Animate primitive exists for signal- driven curves and durations.
  • Web and desktop targets. Flux renders natively on iOS and Android only. For embedded web content there is a WebHost primitive.
  • Styling depth. No arbitrary style objects; layout flows through gap/alignment and per-component props.

For the common screens — forms, navigation, lists, capability-backed data — Flux covers the ground. Where a gap bites, reach for the WebHost escape hatch or wait for the roadmap item rather than fighting the layout system.