<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Anılcan Çakır</title>
    <description>The latest articles on DEV Community by Anılcan Çakır (@anilcancakir).</description>
    <link>https://dev.to/anilcancakir</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3979977%2F32fbb6a7-edec-4620-bb49-cc4a4c863082.jpg</url>
      <title>DEV Community: Anılcan Çakır</title>
      <link>https://dev.to/anilcancakir</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/anilcancakir"/>
    <language>en</language>
    <item>
      <title>Tailwind CSS in Flutter: I gave two AI agents the same page, and only one got keyboard focus right</title>
      <dc:creator>Anılcan Çakır</dc:creator>
      <pubDate>Sun, 29 Nov 2026 21:38:00 +0000</pubDate>
      <link>https://dev.to/anilcancakir/tailwind-css-in-flutter-i-gave-two-ai-agents-the-same-page-and-only-one-got-keyboard-focus-right-4</link>
      <guid>https://dev.to/anilcancakir/tailwind-css-in-flutter-i-gave-two-ai-agents-the-same-page-and-only-one-got-keyboard-focus-right-4</guid>
      <description>&lt;p&gt;Two AI agents, one prompt, one Flutter pricing page. Both pages compiled, both passed &lt;code&gt;flutter analyze&lt;/code&gt;, and at a glance they look almost the same. Then I pressed Tab.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; wind_kit lets you style Flutter widgets with Tailwind class strings, and its &lt;code&gt;wind-ui&lt;/code&gt; agent skill teaches Claude Code, Cursor or Codex the rules that differ from web Tailwind. I gave two agents the same pricing page: both pages compiled and looked right, but only the one with the skill showed keyboard focus.&lt;/p&gt;

&lt;p&gt;Flutter 3.50 was announced on 11 November, and the announcement says package authors can now ship agent skills inside a top-level &lt;code&gt;skills/&lt;/code&gt; directory of their pub.dev packages. The Dart docs give the reason in one line: "Without skills, AI coding agents often guess APIs, suggest deprecated methods, or miss architectural patterns specific to your library." A Tailwind-style package is a good place to test that claim, because your agent already knows Tailwind from the web, and the web is exactly where its habits come from.&lt;/p&gt;

&lt;p&gt;wind_kit is my open source package: Tailwind CSS for Flutter. Its skill, &lt;code&gt;wind-ui&lt;/code&gt;, is the rule book I give agents for it. There is a catch, and I'll be honest about it near the end.&lt;/p&gt;

&lt;p&gt;What you'll walk away with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;wind_kit in a Flutter app, with a dark theme in one file&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;wind-ui&lt;/code&gt; skill installed for Claude Code, Cursor, Codex or Copilot with one Dart command&lt;/li&gt;
&lt;li&gt;The same pricing page written by two agents, one with the skill and one without&lt;/li&gt;
&lt;li&gt;The bug only the run without the skill shipped: keyboard focus nobody can see&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let's start.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Tailwind classes, Flutter widgets
&lt;/h2&gt;

&lt;p&gt;First, bring the package into your project:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;flutter pub add wind_kit material_ui
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;code&gt;material_ui&lt;/code&gt; is there because Flutter 3.50 deprecates &lt;code&gt;package:flutter/material.dart&lt;/code&gt; in favour of the standalone package, so a wind_kit app imports &lt;code&gt;MaterialApp&lt;/code&gt; from &lt;code&gt;package:material_ui/material_ui.dart&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;wind_kit reads a &lt;code&gt;className&lt;/code&gt; string and builds the widget tree from it. A rounded card with a dark variant and a hover shadow is one widget:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight dart"&gt;&lt;code&gt;&lt;span class="nc"&gt;WDiv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'p-6 mx-4 bg-white dark:bg-gray-800 rounded-xl shadow-lg hover:shadow-xl'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;child&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;WText&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Hello'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'text-xl font-bold'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;In plain Flutter, the same card is a &lt;code&gt;Container&lt;/code&gt; with a &lt;code&gt;BoxDecoration&lt;/code&gt;, two &lt;code&gt;BoxShadow&lt;/code&gt;s and a brightness check, and the hover state needs a &lt;code&gt;StatefulWidget&lt;/code&gt; and a &lt;code&gt;MouseRegion&lt;/code&gt; on top.&lt;/p&gt;

&lt;p&gt;It's not a literal Tailwind port, though. Some web classes have no Wind version: &lt;code&gt;group-hover:&lt;/code&gt;, &lt;code&gt;peer-*&lt;/code&gt;, &lt;code&gt;backdrop-blur&lt;/code&gt;, &lt;code&gt;@apply&lt;/code&gt;, negative margins. Wind drops what it can't build, and some drops are silent: &lt;code&gt;text-7xl&lt;/code&gt; is past Wind's &lt;code&gt;text-6xl&lt;/code&gt; cap, so it does nothing and says nothing. That's fine when you write the class yourself and see the result. It's a trap when an agent writes it from web habits.&lt;/p&gt;
&lt;h2&gt;
  
  
  2. A dark theme in one file
&lt;/h2&gt;

&lt;p&gt;The palette lives in one file, as aliases, so views use short names like &lt;code&gt;bg-panel&lt;/code&gt; and &lt;code&gt;text-ink&lt;/code&gt; and the hex values stay in one place:&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;p&gt;&lt;code&gt;syncWithSystem: false&lt;/code&gt; matters. Without it, Wind follows the OS brightness on start and your dark app turns light on a machine set to light mode.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;main.dart&lt;/code&gt; wraps the app once, with &lt;code&gt;WindTheme&lt;/code&gt; above &lt;code&gt;MaterialApp&lt;/code&gt;, so every route and overlay reaches the palette:&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


&lt;h2&gt;
  
  
  3. Install the skill
&lt;/h2&gt;

&lt;p&gt;The skill lives in the wind_kit repository. Dart's skills CLI installs it, no Node needed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;dart run skills@ add https://github.com/anilcancakir/wind_kit --agent claude --all
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Cloning https://github.com/anilcancakir/wind_kit...
Updating https://github.com/anilcancakir/wind_kit...
  [claude] Installed wind-ui
Installed 1 skill(s) for claude at .claude/skills.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;code&gt;--agent&lt;/code&gt; also takes &lt;code&gt;cursor&lt;/code&gt;, &lt;code&gt;codex&lt;/code&gt;, &lt;code&gt;copilot&lt;/code&gt;, &lt;code&gt;cline&lt;/code&gt;, &lt;code&gt;opencode&lt;/code&gt;, &lt;code&gt;antigravity&lt;/code&gt; and &lt;code&gt;generic&lt;/code&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The Flutter 3.50 announcement also points to &lt;code&gt;dart run skills@ get&lt;/code&gt;, which installs skills from your dependencies. &lt;code&gt;get&lt;/code&gt; doesn't find wind_kit's skill today: the skill is not inside the pub.dev archive, and its folder name lacks the &lt;code&gt;wind_kit-&lt;/code&gt; prefix &lt;code&gt;get&lt;/code&gt; looks for. Add it from the repository as above.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The skill is a &lt;code&gt;SKILL.md&lt;/code&gt; and nine reference files. Think of it as the house rules you give a new colleague on their first day. They already know how to code; the rules tell them how this house works. A few lines from it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Every &lt;code&gt;bg-&lt;/code&gt;, &lt;code&gt;text-&lt;/code&gt;, &lt;code&gt;border-&lt;/code&gt;, &lt;code&gt;ring-&lt;/code&gt;, &lt;code&gt;shadow-&lt;/code&gt; and &lt;code&gt;fill-&lt;/code&gt; class gets a &lt;code&gt;dark:&lt;/code&gt; peer in the same &lt;code&gt;className&lt;/code&gt;, unless the colour reads the same in both modes.&lt;/li&gt;
&lt;li&gt;Conditional styling goes through &lt;code&gt;states:&lt;/code&gt; and prefixed classes like &lt;code&gt;selected:bg-accent&lt;/code&gt;, never Dart string interpolation inside a &lt;code&gt;className&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;A table of what web Tailwind does and Wind doesn't, so the agent stops writing &lt;code&gt;group-hover:&lt;/code&gt; and &lt;code&gt;text-7xl&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;A definition of done, with this as item three: every interactive surface has &lt;code&gt;hover:&lt;/code&gt; and &lt;code&gt;focus:&lt;/code&gt; states.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Remember that last one. It comes back.&lt;/p&gt;
&lt;h2&gt;
  
  
  4. Same prompt, two agents
&lt;/h2&gt;

&lt;p&gt;Now the test. I made one small app with the theme above, copied it twice, and installed the skill in one copy only. Then I gave Claude Code the same prompt in both, headless, one run each:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;This Flutter app uses wind_kit for styling. Build a pricing page in lib/pricing_page.dart
and show it from lib/main.dart in place of the placeholder home.

The page has a heading and a one-line subheading, a Monthly / Yearly toggle, and three
plan cards (Starter, Pro, Team). Each card shows a price, four features with check icons
and a "Choose plan" button. Pro is highlighted as the recommended plan. The cards sit in
one column on a phone and in three columns from 768 px wide.

Use wind_kit className styling and the palette aliases in lib/config/theme.dart. When you
are done, run `flutter analyze` and fix what it reports. Do not run the app.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Both runs finished on their own:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Without the skill&lt;/th&gt;
&lt;th&gt;With the skill&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;What it read first&lt;/td&gt;
&lt;td&gt;wind_kit's &lt;code&gt;llms.txt&lt;/code&gt; and pages under &lt;code&gt;doc/&lt;/code&gt; in the pub cache&lt;/td&gt;
&lt;td&gt;The &lt;code&gt;wind-ui&lt;/code&gt; skill and its widget reference&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Turns&lt;/td&gt;
&lt;td&gt;13&lt;/td&gt;
&lt;td&gt;13&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Time&lt;/td&gt;
&lt;td&gt;97 s&lt;/td&gt;
&lt;td&gt;91 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cost&lt;/td&gt;
&lt;td&gt;$0.71&lt;/td&gt;
&lt;td&gt;$0.62&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;flutter analyze&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;No issues found&lt;/td&gt;
&lt;td&gt;No issues found&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Let's give it a shot. This is the page the agent with the skill wrote, at desktop width:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu0ciwxg0hahic0cu3ln2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu0ciwxg0hahic0cu3ln2.png" alt="A dark pricing page: the heading &amp;quot;Simple, transparent pricing&amp;quot;, a Monthly and Yearly toggle, and three plan cards with the Pro card outlined in blue and marked Recommended" width="800" height="480"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;The pricing page from the agent with the skill&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The page from the agent without the skill looks almost the same, and I want to be fair to it: it did a good job. wind_kit ships its &lt;code&gt;llms.txt&lt;/code&gt; and its docs inside the package, and the agent found them in the pub cache on its own. Both agents built every styled element from W-widgets, with no &lt;code&gt;Container&lt;/code&gt; or &lt;code&gt;Text&lt;/code&gt;, both routed the selected plan through &lt;code&gt;states:&lt;/code&gt; instead of string interpolation, both set &lt;code&gt;scrollPrimary&lt;/code&gt; on the scroll, and neither wrote a &lt;code&gt;dark:&lt;/code&gt; peer, for the same reason: the palette is dark only.&lt;/p&gt;

&lt;p&gt;So where is the difference? Put the mouse down.&lt;/p&gt;
&lt;h2&gt;
  
  
  5. Press Tab
&lt;/h2&gt;

&lt;p&gt;On the page without the skill, I clicked an empty spot and pressed Tab twice:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frfs5rwfyzre0iz9zilwh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frfs5rwfyzre0iz9zilwh.png" alt="The Monthly and Yearly toggle after two Tab presses: Monthly is filled blue, Yearly looks unchanged, and nothing shows which control has focus" width="440" height="100"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Two Tabs in: focus is somewhere, the screen doesn't say where&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Nothing changed. Then I pressed Enter:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F966vllx1r0v2rjqwy7fv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F966vllx1r0v2rjqwy7fv.png" alt="The same toggle after Enter: Yearly is now filled blue and the prices switched to yearly" width="440" height="100"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Enter switched the plan to yearly: the focus was on Yearly all along&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The prices switched to yearly. The focus was on Yearly the whole time, and nothing on the screen said so. For someone who moves through the page with a keyboard, that page is a guessing game.&lt;/p&gt;

&lt;p&gt;The same two Tabs on the page with the skill, and Yearly turns into a darker pill:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fulbi2r3uysd8vbjiotjy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fulbi2r3uysd8vbjiotjy.png" alt="The Monthly and Yearly toggle after two Tab presses on the page with the skill: Yearly sits in a darker pill that marks it as focused" width="440" height="100"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;With the skill, two Tabs in: Yearly says it has focus&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;One more Tab, and the focused "Choose plan" gets an accent border:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg0zm379ii0fjmc7ij8ne.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg0zm379ii0fjmc7ij8ne.png" alt="The Starter card's Choose plan button with a blue border showing keyboard focus" width="346" height="76"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;With the skill: the focused button says so&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The code shows why. This is the toggle button's &lt;code&gt;className&lt;/code&gt; without the skill:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight dart"&gt;&lt;code&gt;&lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'px-4 py-2 rounded-full selected:bg-accent'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;And with it:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight dart"&gt;&lt;code&gt;&lt;span class="n"&gt;className&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;'''
  flex flex-row items-center gap-2
  px-5 py-2.5 rounded-full
  bg-transparent hover:bg-surface focus:bg-surface
  selected:bg-accent selected:hover:bg-accent-hover selected:focus:bg-accent-hover
  cursor-pointer duration-150 ease-in-out
'''&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The first agent did see focus: wind_kit's &lt;code&gt;llms.txt&lt;/code&gt; names it as a state you can style, and the button and state pages it opened show &lt;code&gt;focus:&lt;/code&gt; classes. None of the pages it read asks for one on every control. The skill makes it item three of its definition of done. That's the whole point of a skill: the docs tell an agent what exists, and the skill tells it what "done" means.&lt;/p&gt;
&lt;h2&gt;
  
  
  6. One more difference: the background
&lt;/h2&gt;

&lt;p&gt;At the bottom of the page without the skill:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyeejz9y0cnes1vgaqm12.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyeejz9y0cnes1vgaqm12.png" alt="The bottom of the pricing page without the skill: below the cards, the background turns a different, bluer shade of dark" width="800" height="227"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Without the skill: the page colour stops where the content stops&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;bg-surface&lt;/code&gt; sits on the scrolling box, so it ends where the content ends and the &lt;code&gt;Scaffold&lt;/code&gt; colour shows under it. The page with the skill paints the background on an outer box and scrolls inside it. I can't tie this one to a single line of the skill; it's simply what this run did.&lt;/p&gt;

&lt;p&gt;Here is the whole page the agent wrote with the skill, unchanged apart from the path comment on top:&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;h2&gt;
  
  
  7. The catch
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;One run each. An agent doesn't give the same answer twice, so read this as one honest example, not a benchmark. The agent without the skill could add focus states on its next run, and the one with the skill could miss something else.&lt;/li&gt;
&lt;li&gt;The skill is not a linter. Nothing fails the build when a &lt;code&gt;focus:&lt;/code&gt; class is missing or a class does nothing: &lt;code&gt;flutter analyze&lt;/code&gt; was clean on both pages. You still press Tab yourself, or let an agent drive the app with a tool like &lt;a href="https://anilcancakir.com/blog/ai-agent-test-flutter-app" rel="noopener noreferrer"&gt;Tapir&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;wind_kit is a styling engine, not a widget catalogue. &lt;code&gt;Scaffold&lt;/code&gt;, &lt;code&gt;AppBar&lt;/code&gt;, &lt;code&gt;showDialog&lt;/code&gt; and &lt;code&gt;ListView.builder&lt;/code&gt; stay Flutter. A &lt;code&gt;grid&lt;/code&gt; in Wind is a static &lt;code&gt;Wrap&lt;/code&gt;, so a long or growing list still wants &lt;code&gt;ListView.builder&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;If your team doesn't think in Tailwind, the class strings are one more language to learn. In that case, my opinion is that plain widgets with a good &lt;code&gt;ThemeData&lt;/code&gt; are the better call.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;dart run skills@ get&lt;/code&gt; doesn't install the skill today, for the two reasons in the note above.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  8. Install
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;flutter pub add wind_kit material_ui
dart run skills@ add https://github.com/anilcancakir/wind_kit --agent claude --all
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every class, every widget and the theme options are on the &lt;a href="https://anilcancakir.com/wind_kit" rel="noopener noreferrer"&gt;wind_kit page&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Do you give your agent package skills, or do you let it read the docs on its own? I'd like to hear what it gets wrong for you.&lt;/p&gt;

&lt;p&gt;That's all.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://anilcancakir.com/blog/tailwind-css-flutter-ai-agent" rel="noopener noreferrer"&gt;my blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>flutter</category>
      <category>tailwindcss</category>
      <category>ai</category>
      <category>a11y</category>
    </item>
    <item>
      <title>Let your AI agent read your Flutter app's HTTP calls and logs with crumbs</title>
      <dc:creator>Anılcan Çakır</dc:creator>
      <pubDate>Wed, 25 Nov 2026 09:47:12 +0000</pubDate>
      <link>https://dev.to/anilcancakir/let-your-ai-agent-read-your-flutter-apps-http-calls-and-logs-with-crumbs-9gj</link>
      <guid>https://dev.to/anilcancakir/let-your-ai-agent-read-your-flutter-apps-http-calls-and-logs-with-crumbs-9gj</guid>
      <description>&lt;p&gt;A reload tells your AI agent the code compiled. A screenshot tells it what the screen shows. Neither tells it what the server answered.&lt;/p&gt;

&lt;p&gt;So when a list comes up empty, my loop used to be: open the network tab, copy the response, paste it into the chat, then paste the parsing code too, and ask why the list is empty. Today, I'll show you how to hand that step to the agent: it reads the HTTP requests the app sent, the bodies the server sent back, the app's logs and its exceptions. No proxy, no DevTools tab, no stack trace pasted into the chat.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; crumbs records a running Flutter app's HTTP requests with their response bodies, its logs and its exceptions, and Claude Code, Cursor or Codex read them over MCP. Below, the agent finds why a product list is empty although the API answered 200, from two tool calls.&lt;/p&gt;

&lt;p&gt;Why now: Flutter 3.50 was announced on 11 November with official agent plugins, and one of their rules hot reloads or restarts the app every time the agent edits a file under &lt;code&gt;lib/&lt;/code&gt;. So the agent gets a reloaded app after each of those edits; crumbs gives it the record of what that app did. It's my open source package, and there is a catch, which I'll be honest about near the end.&lt;/p&gt;

&lt;p&gt;What you'll walk away with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;crumbs installed in a Flutter app and wired into your agent&lt;/li&gt;
&lt;li&gt;A small &lt;code&gt;http&lt;/code&gt; client that puts every request and response body on the record&lt;/li&gt;
&lt;li&gt;A real bug: the API answered 200, the screen says "No products yet", and nothing threw&lt;/li&gt;
&lt;li&gt;How the agent finds the cause from two tool calls, and proves the fix with one clean read&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let's start.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Install crumbs
&lt;/h2&gt;

&lt;p&gt;Two commands:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;flutter pub add crumbs
dart run crumbs crumbs:install
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;code&gt;crumbs:install&lt;/code&gt; adds &lt;code&gt;dowel&lt;/code&gt;, the CLI and MCP server crumbs runs on, scaffolds a fast &lt;code&gt;./bin/dowel&lt;/code&gt; launcher, and patches &lt;code&gt;lib/main.dart&lt;/code&gt;: it installs crumbs with its exception and &lt;code&gt;debugPrint&lt;/code&gt; watchers behind &lt;code&gt;!kReleaseMode&lt;/code&gt;. The guard matters. Debug and profile builds carry crumbs, and a release build leaves it out. Without the guard, anyone who reaches the app's VM Service could read every buffer.&lt;/p&gt;

&lt;p&gt;Think of crumbs as a flight recorder. It doesn't fly the plane; it records what happened, so you can read it after something goes wrong. Logs from &lt;code&gt;package:logging&lt;/code&gt;, uncaught exceptions and, in debug builds, &lt;code&gt;debugPrint&lt;/code&gt; output are recorded with no extra code.&lt;/p&gt;
&lt;h2&gt;
  
  
  2. Put your HTTP calls on the record
&lt;/h2&gt;

&lt;p&gt;HTTP is the one place you wire yourself. crumbs doesn't bring an HTTP library, so the app hands each request to &lt;code&gt;CrumbsStore.recordHttp&lt;/code&gt;. My example uses &lt;code&gt;package:http&lt;/code&gt; and logs with &lt;code&gt;package:logging&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;flutter pub add http logging
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;With &lt;code&gt;package:http&lt;/code&gt;, the recording is one small client that wraps the real one:&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;p&gt;It reads the response body once, records the request with its status, duration, headers and body, and gives the caller a fresh stream over the same bytes. A request that fails before its body is read is recorded with status &lt;code&gt;0&lt;/code&gt;, and the error goes on to the caller. Because it holds every body in memory, keep streaming responses and large downloads on a client of their own.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;main.dart&lt;/code&gt; uses it only when crumbs is there:&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


&lt;p&gt;On Dio, the same thing is an interceptor; the crumbs example app has one. On a Magic app you write nothing: more on that in section 8.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Connect your agent
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;dart run crumbs mcp:install
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;It writes the &lt;code&gt;dowel&lt;/code&gt; entry into &lt;code&gt;.mcp.json&lt;/code&gt; at the project root:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"dowel"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"./bin/dowel"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"mcp:serve"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"cwd"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"."&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;In Claude Code, run &lt;code&gt;/mcp reconnect dowel&lt;/code&gt; once. Cursor, Windsurf and Claude Desktop keep the server in their own config file, and the &lt;a href="https://anilcancakir.com/crumbs/docs/mcp/setup" rel="noopener noreferrer"&gt;MCP setup page&lt;/a&gt; says where for each. The server has to start in the project root. When I asked the server for its tools, it listed ten &lt;code&gt;crumbs_*&lt;/code&gt; tools next to dowel's own: &lt;code&gt;crumbs_requests&lt;/code&gt;, &lt;code&gt;crumbs_tail&lt;/code&gt;, &lt;code&gt;crumbs_exceptions&lt;/code&gt;, &lt;code&gt;crumbs_clear&lt;/code&gt; and the rest.&lt;/p&gt;

&lt;p&gt;The app is started through dowel, so every tool finds the session:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;./bin/dowel start --device=chrome
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h2&gt;
  
  
  4. A list that is empty for no reason
&lt;/h2&gt;

&lt;p&gt;My example is a small shop screen. It loads five products from &lt;a href="https://dummyjson.com" rel="noopener noreferrer"&gt;DummyJSON&lt;/a&gt;, a free fake API, and shows them in a list:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;GET https://dummyjson.com/products?limit=5&amp;amp;select=title,price
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;It has one bug I left in on purpose. In a phone-sized window it looks like this:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6v0yzkauegxttkijef8m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6v0yzkauegxttkijef8m.png" alt="The product screen at phone width with only an archive box icon, &amp;quot;No products yet&amp;quot; and &amp;quot;Check back soon.&amp;quot;" width="393" height="590"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;The bug: the API sent five products, the screen shows none.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;No red screen, no exception in the console. "No products yet" is a polite empty state, and that's the problem: it looks like a real answer. The screenshot can't say whether the server sent nothing, sent an error, or sent five products the app didn't read.&lt;/p&gt;
&lt;h2&gt;
  
  
  5. What the agent reads
&lt;/h2&gt;

&lt;p&gt;The agent asks crumbs for the HTTP traffic first:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;crumbs_requests {}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"requests"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://dummyjson.com/products?limit=5&amp;amp;select=title,price"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"method"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"GET"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"statusCode"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"durationMs"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;509&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"isError"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"timestamp"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-11-24T20:22:44.637"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"requestHeaders"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nl"&gt;"Authorization"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"********"&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"requestBody"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"responseBody"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"{\"products\":[{\"id\":1,\"title\":\"Essence Mascara Lash Princess\",\"price\":9.99},{\"id\":2,\"title\":\"Eyeshadow Palette with Mirror\",\"price\":19.99},{\"id\":3,\"title\":\"Powder Canister\",\"price\":14.99},{\"id\":4,\"title\":\"Red Lipstick\",\"price\":12.99},{\"id\":5,\"title\":\"Red Nail Polish\",\"price\":8.99}],\"total\":194,\"skip\":0,\"limit\":5}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"atUs"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4431899&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"redacted"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Response"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The server answered &lt;code&gt;200&lt;/code&gt; in 509 ms with five products. Look at &lt;code&gt;Authorization&lt;/code&gt; too: the app sent a bearer token, and crumbs masked it before it was buffered. Credential headers, and body keys and URL parameters with credential names, are hidden by default, with no setup.&lt;/p&gt;

&lt;p&gt;Then the logs:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;crumbs_tail {"level": "INFO"}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"messages"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"level"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"INFO"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"levelValue"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;800&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"message"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Loaded 0 products"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"loggerName"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"products"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"time"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-11-24T20:22:44.643"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"atUs"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4437899&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"redacted"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"cursor"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4437899&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Response"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Five products arrived and the app loaded zero, 6 ms later. &lt;code&gt;crumbs_exceptions&lt;/code&gt; returns an empty list, so nothing threw on the way. That leaves the parsing. The repository reads a key the API doesn't send:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight dart"&gt;&lt;code&gt;&lt;span class="kd"&gt;final&lt;/span&gt; &lt;span class="kt"&gt;List&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;dynamic&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'items'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="kt"&gt;List&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;dynamic&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;?&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The body says &lt;code&gt;products&lt;/code&gt;, the code says &lt;code&gt;items&lt;/code&gt;, and &lt;code&gt;?? const []&lt;/code&gt; turns the miss into an empty list without a word. The agent found it from two tool calls and the code it already had open. I didn't paste anything.&lt;/p&gt;
&lt;h2&gt;
  
  
  6. The fix, and one clean read
&lt;/h2&gt;

&lt;p&gt;The fix is one word:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight dart"&gt;&lt;code&gt;&lt;span class="kd"&gt;final&lt;/span&gt; &lt;span class="kt"&gt;List&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;dynamic&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'products'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="kt"&gt;List&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;dynamic&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;?&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Here is the whole page with the fix:&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;p&gt;The buffers keep the whole run (the newest 500 records each), so an old record can read like a new one. Before it checks a fix, the agent empties them:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;crumbs_clear {}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"cleared"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Response"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Then one tap on Reload, and the next read holds only that action: one request, &lt;code&gt;200&lt;/code&gt; in 334 ms, and one log line, &lt;code&gt;Loaded 5 products&lt;/code&gt;. After a hot restart the buffers start empty as well.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdkpu3nfo8nvxb7wfei1u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdkpu3nfo8nvxb7wfei1u.png" alt="The same screen after the fix, listing five products with their prices" width="393" height="590"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;After the fix: the five products the API sent.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;That's the loop I wanted: the agent changes the code, reloads, reads what the app actually did, and only then says it is done. It's a good pair with &lt;a href="https://anilcancakir.com/blog/ai-agent-test-flutter-app" rel="noopener noreferrer"&gt;Tapir&lt;/a&gt;, which drives the app. Tapir taps, crumbs tells you what the tap caused.&lt;/p&gt;
&lt;h2&gt;
  
  
  7. For humans, the same buffers in the terminal
&lt;/h2&gt;

&lt;p&gt;Every tool has a command, which is handy when you want to look yourself:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;./bin/dowel crumbs:requests
./bin/dowel crumbs:tail
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;2026-11-24T20:22:44.637 GET https://dummyjson.com/products?limit=5&amp;amp;select=title,price → 200 (509ms) atUs=4431899
2026-11-24T20:22:44.643 [INFO] products: Loaded 0 products
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The terminal gives one line per record. The response body is in the MCP answer, which is the one the agent reads.&lt;/p&gt;
&lt;h2&gt;
  
  
  8. On a Magic app
&lt;/h2&gt;

&lt;p&gt;If your app runs on &lt;a href="https://anilcancakir.com/magic" rel="noopener noreferrer"&gt;Magic&lt;/a&gt;, the full-stack framework for Flutter, you don't need the client above. &lt;code&gt;MagicCrumbsIntegration.install()&lt;/code&gt; from &lt;a href="https://anilcancakir.com/magic/devtools" rel="noopener noreferrer"&gt;magic_devtools&lt;/a&gt; records the &lt;code&gt;Http&lt;/code&gt; facade's traffic, model, cache, event, gate and query activity, and since &lt;code&gt;magic_devtools&lt;/code&gt; 1.1.0, Magic's own &lt;code&gt;Log&lt;/code&gt; calls too. When &lt;code&gt;magic_devtools&lt;/code&gt; is in your dependencies, &lt;code&gt;crumbs:install&lt;/code&gt; wires it for you after &lt;code&gt;Magic.init()&lt;/code&gt;. crumbs takes its idea from Laravel Telescope, so if you know that one, you know the shape.&lt;/p&gt;
&lt;h2&gt;
  
  
  9. The theme
&lt;/h2&gt;

&lt;p&gt;The screenshots are dark because the example uses a dark theme in my blog's colours. If you want your copy to look the same, here is the file:&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;h2&gt;
  
  
  10. Where crumbs is the wrong tool
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It drives nothing.&lt;/strong&gt; crumbs only records. Something still has to open the screen and tap: you, or Tapir.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It records what you wire.&lt;/strong&gt; Logs, exceptions and, in debug builds, &lt;code&gt;debugPrint&lt;/code&gt; come for free; HTTP needs the client or interceptor above, so a request made by a client you didn't wrap is not in the buffer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It is not production monitoring.&lt;/strong&gt; Debug and profile builds only, in memory, newest 500 records per buffer. Keep Sentry or Crashlytics for your users' devices; crumbs's exception watcher calls the handler that was there before it, so the two can live together.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Masking goes by name.&lt;/strong&gt; A header such as &lt;code&gt;Authorization&lt;/code&gt;, &lt;code&gt;Cookie&lt;/code&gt; or &lt;code&gt;X-Api-Key&lt;/code&gt;, or a JSON key or query parameter called &lt;code&gt;password&lt;/code&gt; or &lt;code&gt;token&lt;/code&gt;, is masked for you. A custom header like &lt;code&gt;X-Auth-Token&lt;/code&gt; is not, until you add it with &lt;code&gt;CrumbsRedaction.hideRequestHeaders()&lt;/code&gt;. A secret written into a log message is recorded as written, unless you set &lt;code&gt;CrumbsRedaction.redactor&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The timeline on disk is native only.&lt;/strong&gt; Everything above works on the web, but &lt;code&gt;CrumbsFileSink&lt;/code&gt; needs &lt;code&gt;dart:io&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  11. Install
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;flutter pub add crumbs
dart run crumbs crumbs:install
dart run crumbs mcp:install
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The docs, every watcher and the MCP tool reference are on the &lt;a href="https://anilcancakir.com/crumbs" rel="noopener noreferrer"&gt;crumbs page&lt;/a&gt;. If your agent reads skills, &lt;code&gt;npx skills add anilcancakir/crumbs&lt;/code&gt; teaches it the rules above, such as clearing the buffers before a repro.&lt;/p&gt;

&lt;p&gt;What does your agent still ask you to paste today: the response body, the log, or the stack trace? Tell me in the comments.&lt;/p&gt;

&lt;p&gt;That's all. Have a nice day.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://anilcancakir.com/blog/ai-agent-read-flutter-http-logs" rel="noopener noreferrer"&gt;my blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>flutter</category>
      <category>ai</category>
      <category>mcp</category>
      <category>debugging</category>
    </item>
    <item>
      <title>Let your AI agent test your Flutter app with Tapir, on the web and at iPhone size</title>
      <dc:creator>Anılcan Çakır</dc:creator>
      <pubDate>Sat, 21 Nov 2026 00:41:22 +0000</pubDate>
      <link>https://dev.to/anilcancakir/let-your-ai-agent-test-your-flutter-app-with-tapir-on-the-web-and-at-iphone-size-2i9i</link>
      <guid>https://dev.to/anilcancakir/let-your-ai-agent-test-your-flutter-app-with-tapir-on-the-web-and-at-iphone-size-2i9i</guid>
      <description>&lt;p&gt;Flutter 3.50 was announced on 11 November with official agent plugins, and one of their rules hot reloads the app through the MCP server every time the agent edits a file under &lt;code&gt;lib/&lt;/code&gt;. That's good. But a reload only says the code compiled. It doesn't say the button works, or that the header still fits on a phone.&lt;/p&gt;

&lt;p&gt;My loop used to be the same every time: hot reload, take a screenshot, drag the PNG into the chat, paste the widget source, and ask why the button does nothing. Today, I'll show you how I hand that part to the agent itself, with the commands and the real output from my runs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; Tapir runs inside your Flutter debug build and gives Claude Code, Cursor or Codex an MCP server: a Semantics snapshot with a ref for every control, real taps and typing, an &lt;code&gt;effect&lt;/code&gt; block that says whether an action worked, and the errors the app raised. Resize the web view to iPhone width and the agent catches layout bugs a desktop window hides.&lt;/p&gt;

&lt;p&gt;There is a catch, and I'll be honest about it at the end.&lt;/p&gt;

&lt;p&gt;What you'll walk away with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Tapir installed in a Flutter app and wired into your agent&lt;/li&gt;
&lt;li&gt;What the agent actually sees: a short snapshot with a ref for every control&lt;/li&gt;
&lt;li&gt;A real fill and tap, and how the agent knows the tap did something&lt;/li&gt;
&lt;li&gt;A layout bug that a desktop browser hides and an iPhone-sized viewport shows&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let's start.&lt;/p&gt;

&lt;h2&gt;
  
  
  Install Tapir
&lt;/h2&gt;

&lt;p&gt;Two commands:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;flutter pub add tapir dowel
dart run tapir tapir:install
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;code&gt;tapir:install&lt;/code&gt; patches &lt;code&gt;lib/main.dart&lt;/code&gt; for you: it adds the import and calls &lt;code&gt;TapirPlugin.install()&lt;/code&gt; behind &lt;code&gt;!kReleaseMode&lt;/code&gt;. It also scaffolds &lt;code&gt;./bin/dowel&lt;/code&gt;, a fast CLI wrapper, and registers Tapir as a plugin of Dowel, the CLI and MCP server it rides on. My &lt;code&gt;main.dart&lt;/code&gt; after the install:&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;p&gt;The guard matters. Debug and profile builds carry Tapir, and a release build leaves it out. Without the guard, anyone who reaches the app's VM Service could drive your app.&lt;/p&gt;

&lt;h2&gt;
  
  
  Connect your agent
&lt;/h2&gt;

&lt;p&gt;One more command writes the MCP entry:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;dart run tapir mcp:install
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;It writes this into &lt;code&gt;.mcp.json&lt;/code&gt; at the project root:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"dowel"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"./bin/dowel"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"mcp:serve"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"cwd"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"."&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Claude Code doesn't reload &lt;code&gt;.mcp.json&lt;/code&gt; by itself, so run &lt;code&gt;/mcp reconnect dowel&lt;/code&gt; once. Cursor, VS Code, Windsurf and Codex read the same entry; the &lt;a href="https://anilcancakir.com/tapir/docs/mcp/setup" rel="noopener noreferrer"&gt;MCP setup page&lt;/a&gt; has a line for each. When I asked the server for its tool list, it answered with 40 &lt;code&gt;tapir_*&lt;/code&gt; tools: &lt;code&gt;tapir_snap&lt;/code&gt;, &lt;code&gt;tapir_tap&lt;/code&gt;, &lt;code&gt;tapir_fill&lt;/code&gt;, &lt;code&gt;tapir_screenshot&lt;/code&gt;, &lt;code&gt;tapir_exceptions&lt;/code&gt; and the rest.&lt;/p&gt;
&lt;h2&gt;
  
  
  Start the app through Tapir
&lt;/h2&gt;

&lt;p&gt;The app has to be started by Tapir, not by a plain &lt;code&gt;flutter run&lt;/code&gt;, because every command dials the session it records:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;dart run tapir start --device=chrome --cdp-port=9333
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The CDP port lets Tapir take screenshots through Chrome and resize the viewport, which we need in a minute. On a native target you pass the device instead (&lt;code&gt;--device=macos&lt;/code&gt;, an iOS simulator's id, an Android serial). I stayed on the web here, because the bug I want to show only needs a narrow screen.&lt;/p&gt;

&lt;p&gt;My example is a small sign-in page: an email, a password, a "Sign in" button and a "Need help?" link next to the title. It has one bug I left in on purpose.&lt;/p&gt;
&lt;h2&gt;
  
  
  What the agent sees
&lt;/h2&gt;

&lt;p&gt;The first thing an agent does is take a snapshot. Here is the same call from the terminal, so you can see what the agent gets:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;./bin/dowel tapir:snap --interactiveOnly
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;- button "Need help?" [ref=e1]
- textbox "Email" [ref=e2]
  typeable: true
- textbox "Password" [ref=e3]
  typeable: true
- button "Sign in" [ref=e4]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Think of a guest list at the door instead of a photo of the crowd. The agent doesn't guess pixel positions from a screenshot. It reads the app's Semantics tree, and every control gets a short ref (&lt;code&gt;e1&lt;/code&gt;, &lt;code&gt;e2&lt;/code&gt;, ...) it can act on. Five lines cost almost nothing in context, so the agent can take a new snapshot after every step.&lt;/p&gt;
&lt;h2&gt;
  
  
  Let it drive
&lt;/h2&gt;

&lt;p&gt;Now the agent fills the form with bad values and taps the button:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;./bin/dowel tapir:fill --ref=e2 --text=&lt;span class="s2"&gt;"ada"&lt;/span&gt;
./bin/dowel tapir:fill --ref=e3 --text=&lt;span class="s2"&gt;"short"&lt;/span&gt;
./bin/dowel tapir:tap --ref=e4
./bin/dowel tapir:snap --grep=&lt;span class="s2"&gt;"Enter|Use at"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;✓ Filled e2
✓ Filled e3
✓ Tapped e4 (target unchanged)
- textbox "Email": "ada" [ref=e2]
  typeable: true
  - text "Enter a valid email."
- textbox "Password": "•••••" [ref=e3]
  typeable: true
  - text "Use at least 8 characters."
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;These are real pointer and key events going into the widget tree, so the validators run the way they run for a person.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmz11ez6ky98hmyh6eery.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmz11ez6ky98hmyh6eery.png" alt="The sign-in form at iPhone width, with &amp;quot;Enter a valid email.&amp;quot; and &amp;quot;Use at least 8 characters.&amp;quot; in red under the two fields"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Tapir filled the form with bad values and tapped Sign in.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A green tick only says the event left Tapir. It doesn't say the widget took it. So the agent reads the &lt;code&gt;effect&lt;/code&gt; block (&lt;code&gt;--json&lt;/code&gt; prints it):&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"effect"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"kind"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"text"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"verified"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"value"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"ada@example.com"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"effect"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"kind"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"treeChanged"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"changed"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"routeChanged"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The first is a fill that stuck. The second is the tap on "Sign in" with valid values: the button itself didn't change, but a new route opened (&lt;code&gt;routeChanged&lt;/code&gt;, new in Tapir 1.1.0). The next snapshot shows &lt;code&gt;text "Welcome back, ada@example.com"&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;What if the agent taps something it can't reach? Before a tap, Tapir checks that the widget is enabled, on screen, stable and not covered. I tapped the old "Sign in" ref again while the welcome page was on top:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Widget ref=e4 is not actionable: obscured by other widget (top=_RenderInkFeatures)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The refusal names the reason (&lt;code&gt;obscured by&lt;/code&gt;, &lt;code&gt;not enabled&lt;/code&gt;, &lt;code&gt;off-viewport&lt;/code&gt;, &lt;code&gt;not stable&lt;/code&gt;), so the agent doesn't retry blindly or add a &lt;code&gt;Future.delayed&lt;/code&gt; and hope.&lt;/p&gt;
&lt;h2&gt;
  
  
  The bug only an iPhone-sized screen shows
&lt;/h2&gt;

&lt;p&gt;On my desktop Chrome window the page looks fine, and &lt;code&gt;tapir:exceptions&lt;/code&gt; returns an empty list. Now let's give it iPhone 15 Pro's width:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;./bin/dowel tapir:resize_viewport --width=393 --height=852 --dpr=2.0 --mobile --touch --hold
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;code&gt;--hold&lt;/code&gt; keeps the size while the agent works, so run it in the background (&lt;code&gt;tapir:device_profile --preset=iphone-15-pro&lt;/code&gt; sets the same size for one command only). Then a new snapshot:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;✗ ⚠ 1 render error(s) captured on this screen (run tapir:exceptions / tapir_exceptions for full detail):
✗   - overflow: A RenderFlex overflowed by 67 pixels on the right.
- button "Need help?" [ref=e1]
  overflow: true
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The agent didn't need a screenshot to find this. The snapshot puts the error on top and marks the widget that is pushed off the screen. The title and the link sit in a &lt;code&gt;Row&lt;/code&gt;, and the title has no room to wrap. The fix is one widget, &lt;code&gt;Expanded&lt;/code&gt; around the title:&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;p&gt;&lt;code&gt;tapir:hot_reload_and_snap&lt;/code&gt; reloads the app and returns a fresh snapshot, the screen and the recent errors in one round trip. The &lt;code&gt;overflow&lt;/code&gt; flag is gone from the snapshot.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxpsyvfqzdy5m1fysvcio.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxpsyvfqzdy5m1fysvcio.png" alt="Left: the title row at 393 pixels wide, with Flutter's yellow and black overflow stripe over the &amp;quot;Need help?&amp;quot; link. Right: the same row after the fix, the title wraps to two lines and the link fits"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Before and after the &lt;code&gt;Expanded&lt;/code&gt; fix, at iPhone 15 Pro width.&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; &lt;code&gt;tapir:exceptions&lt;/code&gt; keeps the whole history, so the old overflow is still in the list after the reload. Note the time before an action and pass &lt;code&gt;--since=&amp;lt;time&amp;gt;&lt;/code&gt;; after a hot restart that call came back empty.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That's the loop I wanted: the agent changes the code, reloads, checks the screen at the size the user has, and only then says it is done.&lt;/p&gt;
&lt;h2&gt;
  
  
  The theme
&lt;/h2&gt;

&lt;p&gt;The screenshots are dark because the example uses a dark theme in my blog's colours. If you want your copy to look the same, here is the file:&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


&lt;h2&gt;
  
  
  Where Tapir is the wrong tool
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It is not your regression suite.&lt;/strong&gt; Tapir drives a live app; it writes no test file. Keep &lt;code&gt;integration_test&lt;/code&gt; or Patrol in CI for flows that must never break. The official Dart and Flutter MCP server has a Flutter Driver tool and a prompt that turns a user journey into a driver test, which is closer if a test file is what you want.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Debug and profile builds only.&lt;/strong&gt; A release build has no Tapir in it, on purpose.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The web session trades one thing away.&lt;/strong&gt; With &lt;code&gt;--cdp-port&lt;/code&gt;, Flutter runs on the &lt;code&gt;web-server&lt;/code&gt; device, which can't evaluate Dart expressions, so &lt;code&gt;tapir_evaluate&lt;/code&gt; returns an error there. Start without the port when you need it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A widget test can catch this overflow too&lt;/strong&gt;, if you write one at that width. Tapir is for the screens nobody wrote a test for yet, while the agent is still building them.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Install
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;flutter pub add tapir dowel
dart run tapir tapir:install
dart run tapir mcp:install
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The docs, every command and the full MCP tool list are on the &lt;a href="https://anilcancakir.com/tapir" rel="noopener noreferrer"&gt;Tapir page&lt;/a&gt;. If your agent reads skills, &lt;code&gt;npx skills add anilcancakir/tapir&lt;/code&gt; teaches it the rules above.&lt;/p&gt;

&lt;p&gt;How do you check your agent's UI changes today: screenshots in the chat, a test suite, or by hand? I'd like to hear it in the comments.&lt;/p&gt;

&lt;p&gt;That's all. Have a nice day.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://anilcancakir.com/blog/ai-agent-test-flutter-app" rel="noopener noreferrer"&gt;my blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>flutter</category>
      <category>ai</category>
      <category>mcp</category>
      <category>testing</category>
    </item>
    <item>
      <title>fluttersdk_wind is now wind_kit: the FlutterSDK packages have new names</title>
      <dc:creator>Anılcan Çakır</dc:creator>
      <pubDate>Wed, 18 Nov 2026 16:11:25 +0000</pubDate>
      <link>https://dev.to/anilcancakir/fluttersdkwind-is-now-windkit-the-fluttersdk-packages-have-new-names-1d29</link>
      <guid>https://dev.to/anilcancakir/fluttersdkwind-is-now-windkit-the-fluttersdk-packages-have-new-names-1d29</guid>
      <description>&lt;p&gt;If you run &lt;code&gt;flutter pub get&lt;/code&gt; on a project that uses one of my FlutterSDK packages, you have probably seen this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;fluttersdk_wind 1.11.2 (discontinued replaced by wind_kit)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every package kept its code, got a new name, and moved under my own name: the repositories at &lt;code&gt;github.com/anilcancakir&lt;/code&gt;, the packages under the &lt;code&gt;anilcancakir.com&lt;/code&gt; publisher on pub.dev. The old names get no more releases.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; &lt;code&gt;fluttersdk_wind&lt;/code&gt; is &lt;code&gt;wind_kit&lt;/code&gt;, &lt;code&gt;fluttersdk_dusk&lt;/code&gt; is &lt;code&gt;tapir&lt;/code&gt;, &lt;code&gt;fluttersdk_telescope&lt;/code&gt; is &lt;code&gt;crumbs&lt;/code&gt; and &lt;code&gt;fluttersdk_artisan&lt;/code&gt; is &lt;code&gt;dowel&lt;/code&gt;, all at 1.x. Swap the dependency and the import; a Wind app also moves its Material import to &lt;code&gt;material_ui&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The new names
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Was&lt;/th&gt;
&lt;th&gt;Is&lt;/th&gt;
&lt;th&gt;Latest&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;fluttersdk_wind&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;wind_kit&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;1.12.2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;fluttersdk_wind_diagnostics_contracts&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;wind_kit_diagnostics_contracts&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;1.3.0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;fluttersdk_dusk&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;tapir&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;1.1.0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;fluttersdk_telescope&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;crumbs&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;1.1.1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;fluttersdk_artisan&lt;/code&gt; and &lt;code&gt;magic_cli&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;dowel&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;1.1.0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;magic&lt;/code&gt; and its plugins&lt;/td&gt;
&lt;td&gt;same names&lt;/td&gt;
&lt;td&gt;1.1.0 (core)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Why
&lt;/h2&gt;

&lt;p&gt;Flutter is a trademark of Google. Google asked me to take FLUTTER out of the name of my brand, my packages and my profiles, and I agreed. Describing compatibility stays allowed, so a package can still say it is "for Flutter".&lt;/p&gt;

&lt;p&gt;I did not pick a new brand. The site, the publisher and the repositories carry my name, the way &lt;code&gt;felangel/bloc&lt;/code&gt; and &lt;code&gt;rrousselGit/riverpod&lt;/code&gt; live on personal accounts. On pub.dev a package name is forever and the publisher can move later, so the permanent choices went into the names: no Google marks, no Laravel product names (Dusk, Telescope and Artisan were Laravel names), English, no brand prefix.&lt;/p&gt;

&lt;h2&gt;
  
  
  Move a Wind app
&lt;/h2&gt;

&lt;p&gt;I moved a small app from &lt;code&gt;fluttersdk_wind&lt;/code&gt; 1.11.2 to &lt;code&gt;wind_kit&lt;/code&gt; on Flutter 3.50. Swap the package:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;flutter pub remove fluttersdk_wind
flutter pub add wind_kit material_ui
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace the import:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;grep -rl &lt;span class="s1"&gt;'package:fluttersdk_wind/'&lt;/span&gt; lib &lt;span class="nb"&gt;test&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; xargs sed -i.bak &lt;span class="s1"&gt;'s#package:fluttersdk_wind/fluttersdk_wind.dart#package:wind_kit/wind_kit.dart#'&lt;/span&gt;
find lib &lt;span class="nb"&gt;test&lt;/span&gt; -name &lt;span class="s1"&gt;'*.bak'&lt;/span&gt; -delete
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;wind_kit&lt;/code&gt; builds on &lt;code&gt;material_ui&lt;/code&gt;, which replaces &lt;code&gt;package:flutter/material.dart&lt;/code&gt; (deprecated in Flutter 3.50). Your &lt;code&gt;MaterialApp&lt;/code&gt;, &lt;code&gt;ThemeData&lt;/code&gt; and &lt;code&gt;Colors&lt;/code&gt; must come from the same place, or you get "No MaterialLocalizations found" at run time. One fix moves the imports:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;dart fix --apply --code=migrate_design_widgets
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No &lt;code&gt;W*&lt;/code&gt; or &lt;code&gt;Wind*&lt;/code&gt; class changed. &lt;code&gt;dart analyze&lt;/code&gt; says &lt;code&gt;No issues found!&lt;/code&gt; and &lt;code&gt;flutter pub deps&lt;/code&gt; lists no &lt;code&gt;fluttersdk&lt;/code&gt; package:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg2sjbtushzzermgw4hhq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg2sjbtushzzermgw4hhq.png" alt="Four dark rows, each with an old fluttersdk package name struck through on the left and its new name in blue on the right" width="799" height="283"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Two things to know: do not keep both packages in one app (each has its own &lt;code&gt;WindTheme&lt;/code&gt;), and &lt;code&gt;wind_kit&lt;/code&gt; needs Dart 3.13 and Flutter 3.47, so an older app stays on &lt;code&gt;fluttersdk_wind&lt;/code&gt; 1.11.x for now.&lt;/p&gt;

&lt;h2&gt;
  
  
  tapir, crumbs, dowel and Magic
&lt;/h2&gt;

&lt;p&gt;These rename their classes, CLI commands, MCP tools and environment variables too: &lt;code&gt;Dusk*&lt;/code&gt; is &lt;code&gt;Tapir*&lt;/code&gt;, &lt;code&gt;Telescope*&lt;/code&gt; is &lt;code&gt;Crumbs*&lt;/code&gt;, &lt;code&gt;Artisan*&lt;/code&gt; is &lt;code&gt;Dowel*&lt;/code&gt;, &lt;code&gt;bin/fsa&lt;/code&gt; is &lt;code&gt;bin/dowel&lt;/code&gt;, and the &lt;code&gt;fluttersdk&lt;/code&gt; server in &lt;code&gt;.mcp.json&lt;/code&gt; is now &lt;code&gt;dowel&lt;/code&gt;. Nothing moves on its own, so follow the &lt;a href="https://anilcancakir.com/dowel/docs/getting-started/migrating-from-fluttersdk-artisan" rel="noopener noreferrer"&gt;dowel guide&lt;/a&gt; first, then the &lt;a href="https://anilcancakir.com/tapir/docs/getting-started/migrating-from-fluttersdk-dusk" rel="noopener noreferrer"&gt;tapir guide&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Magic kept its name, but Magic 1.0 depends on &lt;code&gt;wind_kit&lt;/code&gt; and &lt;code&gt;dowel&lt;/code&gt;, and &lt;code&gt;dart run magic:artisan&lt;/code&gt; is now &lt;code&gt;dart run magic:dowel&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it costs
&lt;/h2&gt;

&lt;p&gt;The numbers start from zero. Today &lt;code&gt;fluttersdk_wind&lt;/code&gt; has 32 likes and 81,959 downloads in the last 30 days; &lt;code&gt;wind_kit&lt;/code&gt; has 2 likes and 326. Old links to &lt;code&gt;fluttersdk&lt;/code&gt; redirect for now, but not forever.&lt;/p&gt;

&lt;p&gt;Are you still on one of the old names, and what is holding the move back? Tell me in the comments.&lt;/p&gt;

&lt;p&gt;The full post, with the Magic and Laravel starter notes and everything else that moved, is on my blog: &lt;a href="https://anilcancakir.com/blog/fluttersdk-packages-renamed" rel="noopener noreferrer"&gt;fluttersdk_wind is now wind_kit&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;That's all. Have a nice day.&lt;/p&gt;

</description>
      <category>flutter</category>
      <category>dart</category>
      <category>opensource</category>
      <category>mobile</category>
    </item>
  </channel>
</rss>
