Skip to content
pubscout

tandem

0.3.2, released 3 days ago by leancode.co

Makes an existing Flutter screen agent-aware over AG-UI.

WASM-ready
$ flutter pub add tandem
Source repository

What it does

Tandem connects Flutter screens to AI agents using the AG-UI protocol. It allows agents to read state, call state methods with proper validation, and wait for user approvals on important actions.

AI-written summary of version 0.3.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want AI agents to interact with running Flutter screens and forms.
  • You use AG-UI compatible backends like Google ADK, LangGraph, or Pydantic AI.
  • You want local on-device model support via Apple Foundation Models on iOS/macOS 26.

Skip it when

  • You need non-UI pure LLM client capabilities without screen integration.
  • You are targeting platforms without build_runner code generation support.

Strengths

  • Integrates seamlessly with existing screen states and methods.
  • Supports approvals for sensitive actions.
  • Works with both remote AG-UI backends and experimental local Apple on-device models.

Weaknesses

  • Experimental API that can change before 1.0.
  • Requires build_runner code generation.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
Yes (build_runner)
Direct dependencies
5

Requires adding tandem and dev dependencies build_runner and tandem_generator, then running build_runner build.

void main() {
  TandemBridge.enable();
  runApp(const OrderDeskApp());
}

Alternatives

Packages that do the same job and could replace tandem.

Works with

Packages commonly used together with tandem: ones it builds on, ones built on it, and its own family.