← All writing

On-device AI is moving from chat to actions. What should Flutter apps expose?

Gemini Nano agent workflows and Apple Intelligence point toward AI that uses app capabilities. How to design a small, verifiable feature across Android and iOS.

“Find my unfinished packing list and add a rain jacket.”

That request is a better test of a mobile assistant than asking it to write another paragraph. It has to locate the right item, understand an intended change and carry out a small operation without damaging anything else.

Current Android and Apple developer tooling makes this direction worth watching. For Flutter developers, the interesting question is which useful capabilities an app should expose, and how to verify the result.

Sources checked on November 2, 2026. The implementation below is a proposed product architecture, not a tested cross-platform package or a claim that the platforms offer identical APIs.

Android now documents an on-device agent loop

Google's ML Kit agent workflow documentation describes Gemini Nano agents using Android's AICore service. AgentRunner coordinates reasoning, tool calls and multi-turn sessions. Typed tools connect the model to application capabilities.

The release status matters: the documented genai-agent dependency is alpha and access is through the AICore Developer Preview program. Supported hardware and enrollment requirements apply. This is a feature to evaluate on eligible devices, not a basis for promising universal Android support.

Also separate local inference from the tools it invokes. An on-device model can still call a tool that contacts your server. “The model runs locally” does not mean every operation stays offline or that no application data leaves the phone.

Apple is exposing both intelligence and app capabilities

Apple's current Apple Intelligence developer overview describes two related routes. The Foundation Models framework provides model access through native Swift APIs. App Intents makes app content and actions available to system experiences such as Siri and Shortcuts.

These are different integration decisions. An assistant inside your app needs an inference experience; an action available through the operating system needs a discoverable capability. Some products may benefit from both.

Apple's overview also covers on-device models, Private Cloud Compute and other model providers. Choose the actual execution path before describing a feature as fully local. Check availability for the specific API, OS, device and user configuration you intend to support.

A small feature is a better starting point

For a first experiment, I would choose adding one item to an existing list. It has a concrete outcome, a small data surface and an easy undo operation.

The flow could be:

User request
    → identify a candidate list
    → propose an item to add
    → validate the list and item
    → show a preview when needed
    → save through the normal repository
    → display the saved result and Undo

The model should propose structured arguments. The app should decide whether those arguments describe an allowed operation. That distinction keeps the same business rules in force whether the user taps a button or types a sentence.

If the request matches three packing lists, ask which one. Do not turn uncertain retrieval into a confident write.

Give Flutter a capability boundary

Flutter supports calling native Kotlin and Swift through platform channels, with Pigeon available for generated type-safe interfaces. That provides an integration route; it does not supply a ready-made bridge for every new AI framework.

I would put a small service between the shared interface and each platform implementation. It should report availability, start a request, deliver progress, support cancellation and return a structured outcome.

Useful outcomes include:

  • A proposed change that needs review.
  • A completed change with the saved object's identifier.
  • A request for clarification.
  • An unavailable capability with a normal manual path.
  • A failure that explains whether anything was changed.

Keep those outcomes independent of a vendor's token stream. The screen should be able to show “Choose a list” or “Item added” without understanding model-specific event formats.

Tools should be narrower than the database

Avoid a general “run SQL” tool for this feature. Prefer operations such as finding lists, reading a selected list and adding an item to a list the current user may edit.

Before saving, validate ownership, input length and the target object's current state. Give each proposed write an operation identifier so a retry cannot silently add the same item twice. These are application design recommendations, rather than guarantees supplied by an AI framework.

Treat retrieved notes as content. A note that says “delete every other list” must not acquire the authority of an instruction from the person using the app.

For more consequential features, the preview should show the actual recipient, amount or object being changed. A generic confirmation hides the details the user needs to catch a mistake.

Evaluate the action, not the answer

A pleasant response can accompany the wrong database change. Build an evaluation set around observable outcomes instead.

For the packing-list example, include duplicate list names, a deleted target, an empty request, mixed languages, cancellation and repeated submissions. Test an unavailable model and a tool failure as well as the happy path.

After each test, inspect the saved state. Did exactly one intended item change? Did cancellation prevent a pending write? Did a failure message accurately describe what happened?

Measure latency on the devices you support, including a cold start. Keep a manual add-item flow available so model availability never determines whether the core app works.

The next useful AI feature may have no chat history

A compact action sheet could be enough: a request field, a proposed change and a result with Undo. Conversation history is useful only if the task benefits from it.

For a Flutter team exploring this trend, the first milestone should be one action that is easy to understand and easy to verify on each platform. Expand after you can explain how it behaves when the model is unavailable, uncertain or wrong.

That is a more convincing demonstration of mobile AI than a fluent answer with no reliable connection to the app's state.

Something to add? I’d love to hear it.

Let’s talk about it ↗