Kasikornbank Amorn Apichattanakul

Kasikornbank's One Size Fits None: Adaptive, Context-Aware UI in Flutter with GenUI

Original post One Size Fits None: Adaptive, Context-Aware UI in Flutter with GenUI

Article Summary

Amorn Apichattanakul from KBTG just built a JARVIS-style financial HUD in Flutter that makes AI speak UI instead of walls of text. No more ChatGPT with a custom skin.

This article introduces A2UI, Google's new streaming protocol that lets AI agents return interactive UI components instead of text responses. Using Flutter's GenUI package, the author demonstrates how to build context-aware interfaces where AI dynamically generates native widgets based on user queries, creating a fluid 'Zero-UI' experience.

Key Takeaways

Critical Insight

A2UI enables AI to generate secure, native, interactive UI components on demand instead of forcing users to parse text responses.

Continue reading

What This Article Covers

Problem

AI applications were giving smart responses through text-only interfaces. Users had to read through paragraphs and Markdown tables instead of seeing complex financial data visually.

Solution

Amorn Apichattanakul built a streaming protocol for A2UI using Flutter's GenUI package. This lets Gemini Flash create JSON blueprints that connect to pre-approved native Flutter widgets, so it doesn't have to generate code.

Impact

The JSON approach removed code injection risks and kept performance fast at the native level. The financial HUD can now render interactive dashboards, portfolio trackers, and simulation sliders instantly while staying on brand.

The repo is public, but there's a specific security pattern in the CustomA2uiMessageProcessor that solves the malicious URL problem.

This page summarizes “One Size Fits None: Adaptive, Context-Aware UI in Flutter with GenUI” by Kasikornbank, published Mar 24, 2026. All credit for the original work goes to the authors.

Read the original on medium.com (opens in new tab)

AI tools for Flutter

Browse all AI tools →