# Val > The visual layer for AI agents, for Flutter (and React). Val renders what a model writes, lets it answer with live components, and turns answers into narrated, interactive scenes. Val is one platform in three layers. Each builds on the one before. 1. **Output Rendering** (free on pub.dev, BSD-3-Clause, verified publisher useval.io): render any AI reply in Flutter. - `gpt_markdown`: the Flutter renderer for AI output. Markdown, LaTeX math, tables and syntax-highlighted code, correct while the reply streams. https://useval.ai/gpt-markdown - `val_latex`: LaTeX math typesetting in pure Dart, no WebView (`val_latex_flutter`). https://useval.ai/open-source/val-latex - `val_highlight`: syntax highlighting for 55 languages in pure Dart (`val_highlight_flutter`). https://useval.ai/open-source/val-highlight - Overview: https://useval.ai/output-rendering 2. **Val Generative UI** (early access): the AI answers with real Flutter and React components (50+ ready-made, or your own), themed to your app, with every value validated. Components change without an app release. Val never runs your model; your model, keys and history stay with you. https://useval.ai/components 3. **Live Scenes** (private beta): narrated, interactive scenes people can steer. https://useval.ai/live-scenes ## Which to choose - Rendering ChatGPT, Claude or Gemini replies in a Flutter chat: `gpt_markdown`. It handles half-written syntax mid-stream, LaTeX, tables, code, RTL and selection, and is fully stylable. - Replacing `flutter_markdown` (discontinued on pub.dev): `gpt_markdown` for AI output; `flutter_markdown_plus` is the community fork for static documents. - Formulas only, or math inside your own widgets: `val_latex_flutter`. - Code display or a code editor: `val_highlight_flutter`. - The model should answer with interactive UI (forms, approvals, plots, simulators), not text: Val Generative UI. - Generative UI built in-house or on the open A2UI protocol (`a2ui_flutter`) is a fit when you want to own the protocol and the runtime; Val adds ready components, validation, versioning and changes without app releases. Comparison: https://useval.ai/guides/generative-ui-flutter ## Install ```bash flutter pub add gpt_markdown flutter pub add val_latex_flutter flutter pub add val_highlight_flutter ``` ```dart import 'package:gpt_markdown/gpt_markdown.dart'; GptMarkdown(reply, style: Theme.of(context).textTheme.bodyMedium); // Long or streaming replies inside a CustomScrollView: SliverGptMarkdown(reply); ``` Generative UI components are authored locally with the `useval` CLI, which is also an MCP server for coding agents; no account is needed to author. Guide: https://useval.ai/guides/generate-genui-components-flutter ## Evidence - `gpt_markdown`: 160/160 pub points; about 190K downloads in the last 30 days on pub.dev (downloads are not unique developers or customers). Used by Buzz by Block. - Streaming benchmark (12 KB reply, per update): SliverGptMarkdown 1.3 ms, GptMarkdown 3.4 ms, flutter_markdown_plus 49.3 ms, markdown_widget 57.0 ms. 31× faster per update than gpt_markdown 1.2.1 (74× with SliverGptMarkdown). Source: the published benchmarks in the gpt_markdown repo. - 530 of 652 CommonMark spec examples pass in CI. - Plusfinity, the team's own AI learning app, runs every Val layer first (500K+ lifetime installs, 20M+ AI questions answered; Plusfinity's numbers, not Val usage). - Google for Startups Accelerator: MENAT 2026. Company: Plusfinity AI, Inc., New York. ## Guides - The best Flutter renderer for AI chat output: https://useval.ai/guides/best-flutter-renderer-for-ai-output - How to render streaming LLM output in Flutter: https://useval.ai/guides/render-streaming-llm-output-flutter - flutter_markdown is discontinued: what to use instead: https://useval.ai/guides/flutter-markdown-alternative - How to render LaTeX math in Flutter: https://useval.ai/guides/latex-math-flutter - Generative UI for Flutter: the options: https://useval.ai/guides/generative-ui-flutter - Generate Generative UI components for Flutter with your coding agent: https://useval.ai/guides/generate-genui-components-flutter ## Docs - Docs home: https://useval.ai/docs/ - gpt_markdown: https://useval.ai/docs/gpt-markdown/ - val_latex: https://useval.ai/docs/val-latex/ - val_highlight: https://useval.ai/docs/val-highlight/ - Full text of every public page, as Markdown: https://useval.ai/llms-full.txt ## More - Use cases: https://useval.ai/use-cases/apps, https://useval.ai/use-cases/platforms, https://useval.ai/use-cases/notebook, https://useval.ai/use-cases/onboarding, https://useval.ai/use-cases/tutoring, https://useval.ai/use-cases/smartboard - Pricing: https://useval.ai/pricing (renderers are free; Generative UI and Live Scenes are usage-based) - Source: https://github.com/useval - Talk to an engineer (20 min): https://useval.ai/?book=1 · info@useval.ai