zuraffa_flutter 6.0.0
zuraffa_flutter: ^6.0.0 copied to clipboard
Flutter UI layer for Zuraffa — views, controllers, presenters, shells, xray, and state widgets.
zuraffa_flutter #
Flutter UI layer for Zuraffa — the AI-first Clean Architecture framework and CLI.
zuraffa is pure Dart: entities, use cases, repositories, DI, state, telemetry, and the
zfa code generator. zuraffa_flutter adds everything that needs the Flutter SDK:
- Views & presentation —
View,ResponsiveView,AdaptiveView,Presenter,Controller,ControlledWidget - App shells — mobile / tablet / desktop / macOS shells with an automatic resolver
- State widgets —
SignalBuilder,FragmentBuilderover Zuraffa's signal slices - X-Ray — runtime widget inspection: overlay with bounding boxes, control deck, mock payload injection, and an MCP bridge so AI agents can inspect the live UI
- Module wiring —
AppRunnerand route building forZuraffaEngineplugins
Installation #
dependencies:
zuraffa: ^6.0.0
zuraffa_flutter: ^6.0.0
Or let the CLI wire it for you:
dart pub global activate zuraffa
zfa setup
Usage #
Generated code from zfa make ... --with=vpc --state imports this package directly:
import 'package:zuraffa_flutter/zuraffa_flutter.dart';
class ProductView extends View<ProductController> {
const ProductView({super.key});
@override
Widget buildView(BuildContext context, ProductController controller) {
return SignalBuilder(
signal: controller.state.products,
builder: (context, products) => ListView(/* ... */),
);
}
}
Documentation #
- Framework docs: https://zuraffa.com
- Repository & issues: https://github.com/arrrrny/zuraffa
License #
MIT — see LICENSE.