r/FlutterDev • u/ulusoyapps • Jul 20 '26
Article GenUI Beyond Chat: Designing a Grammar Book with Flutter GenUI
Hi everyone,
This three-part series is my attempt to explore GenUI beyond Chat interfaces: an interactive grammar book built with Flutter GenUI, Firebase AI, A2UI, Firestore, and Widgetbook.
A deterministic curriculum defines what should be taught, a teaching prompt defines how it should be explained, and an application-owned widget catalog defines how that explanation can be expressed. The resulting A2UI is then stored as a reusable A2UI artifact in Firebase Firestore rather than regenerated for every learner.
• Part 1 — Designing a Grammar Book with Flutter GenUI
The curriculum, teaching system prompt, purpose-specific catalog, and language-specific teaching bridges.
• Part 2 — Caching and Replaying A2UI Lessons with Firebase
Covers batched surface generation, caching the accumulated A2UI in Firestore, and replaying it through the same transport without another Gemini request.
• Part 3 — Replaying and Reviewing A2UI Cache with Widgetbook
Uses Widgetbook as both a catalog-planning reviewing and a live viewer for cached lessons.
Some screen recordings:
Widgetbook replaying A2UI cache with custom addon: https://youtu.be/zMChSL7VOiY
The feature demo: https://youtu.be/yqRCdN-5J6Y