Flutter's official answer: AI makes code cheap to write, so why keep one codebase?
With commentary around Shopify and elsewhere asking why anyone still needs Flutter when AI can cheaply produce native Swift and Kotlin code and let separate agents[1] maintain iOS and Android, Flutter's official answer is ongoing maintenance cost: AI lowers the cost of writing code the first time, not the multi-year cost of keeping two platforms consistent and fixing every bug in both repositories. A single codebase also accumulates product decisions and bug-fix history; the article's example is a checkout state machine where an iOS agent discards stale network responses while an Android agent queues them — both pass local unit tests, but retries on an unstable network leave one side ignoring old results and the other writing them back into state, so every requirement change still has to be implemented and verified on both ends. Flutter argues the AI-era bottleneck is verification rather than writing, so it connects hot reload[2], widget tests, the analyzer and the runtime widget inspector to agent toolchains, bringing stateful hot reload under 200 ms and widget tests under 500 ms against native builds of 2–5 minutes. The framework now maintains agent workflows as engineering infrastructure — MCP[3], Skills, package-author rules, test gates in real plugins — and the dart mcp-server plugs static analysis, test execution and runtime checks into tools like Codex, Claude Code and Cursor, alongside work on A2UI, the GenUI SDK for Flutter and a GenKit Agent SDK. Flutter ships 10 Flutter Skills and 14 Dart Skills, which package authors can publish alongside their pub.dev[4] dependencies and developers can discover with `dart run skills@ get`; for small and medium teams one Dart business logic and state machine defines the behavior once and needs one acceptance pass, shared to iOS, Android and even HarmonyOS, while native plugins — long Flutter's weak spot — become an advantage because agents can now fix them directly.
Discussion
The comments lean skeptical or wry: one argues that a native Xcode build already adapts to new iPhone models after a single compile, while Flutter's latest tab bar still crosses the side status bar and its navigation back button stays at the top; another quips that what once saved manpower now saves tokens, and a third expects developers to end up like assembly-line workers in electronics factories.
Sources
-
CNJuejin ZH
Flutter 官方表示:AI 时代代码越来越容易写,为什么还要一套代码库?


