cd /news/generative-engine-optimization/how-we-made-a-185-page-flutter-web-a… · home › topics › generative-engine-optimization › article
[ARTICLE · art-175316] src=dev.to ↗ pub= topic=generative-engine-optimization verified=true sentiment=↑ positive

How we made a 185-page Flutter web app readable by Google and AI crawlers

The team behind TypeorDrop, a free Flutter web file-tools site with 185 public URLs, built an open-source Python tool (nexina/flutter-web-seo) that generates per-route static HTML shells at deploy time, giving crawlers real titles, meta tags, structured data and a visually-hidden text block without server-side rendering or headless Chrome. The Merge Word page now exposes 1,104 words to non-JavaScript crawlers instead of the default Flutter shell, and nginx fixes eliminated duplicate slash variants, junk index.html URLs and noindexed code assets. In one week of logs, Googlebot made 717 requests, bingbot 193, ClaudeBot 142, OAI-SearchBot 97, ChatGPT-User 34 and GPTBot 24.

key takeaway

Generating one static HTML shell per route at deploy time from the same database rows as the app gave a JavaScript-free crawler 1,104 words on the Merge Word page, with the text clipped to 1px rather than display:none so it stays in the DOM and remains accessible.

by read4 min views4 publishedNov 24, 2026

Flutter web draws your app onto a canvas. That is great for users and terrible for crawlers: a fresh flutter build web hands Google a page with almost no text, no headings and the same title on every route.

We run TypeorDrop, a free file-tools site (PDF, Word, image, audio and video converters) built entirely in Flutter web. It has 185 public URLs. This is how we made every one of them readable without server-side rendering, headless Chrome, or changing a single widget, and what crawlers actually did afterwards.

The generic tooling is open source: nexina/flutter-web-seo (MIT, Python, no dependencies).

At deploy time, after flutter build web, a script takes the built index.html as a template and writes one copy per route, for example /merge-docx/index.html. Each copy gets:

<title>, meta description, canonical URL, Open Graph and Twitter tagsSoftwareApplication, BreadcrumbList, FAQPage where there is an FAQ#seo-content block The server serves /merge-docx straight from /merge-docx/index.html. A crawler that runs no JavaScript sees a normal document. A user sees Flutter.

On our Merge Word page, a crawler without JavaScript now sees 1,104 words of real content, where it used to see the default Flutter shell.

The text block must not be display: none. We clip it to 1 px (a visually-hidden class), keep it in the DOM next to the Flutter host, and never remove it when Flutter mounts. Screen readers can still reach it, and it shows the same content the app shows, so it is not cloaking. A <noscript> rule reveals it fully, and if Flutter has not booted after 20 seconds, the page shows it as a plain fallback.

Our shells are generated from the same database rows the app uses (title, H1, intro, steps, FAQ per tool), plus Markdown for blog posts. Change a row, redeploy, and the page and the app agree. The build stops on mistakes: titles over 60 characters, descriptions outside 120 to 160 characters, duplicate titles, a sitemap URL without a page file.

Most Flutter SEO packages stop at the HTML. Half our problems were in nginx:

/convert-pdf-to-word and /convert-pdf-to-word/ were both indexed and ranked 12 positions apart. Now every /x/ gets a permanent 301 to /x in one hop, and http, apex and slash variants all reach the final URL in a single redirect.try_files $uri $uri/index.html @app; serves /x/index.html internally, so nginx never answers with its own 301 to index.html and status 200, so Google indexes junk URLs. We keep a generated list of known app routes; anything else gets a real 404.noindex on code.*.js, *.mjs, *.wasm and *.json get X-Robots-Tag: noindex. Crawlers can still fetch them to render, but they don't show up as pages. The repo includes an example nginx config with all four.

<lastmod> comes from real change dates (the database row's updated_at, or the git date of the source file), never "today". A sitemap where everything changed today teaches Google to ignore your dates.llms.txt so AI assistants get a short, accurate description of the site. From our nginx logs for one week (14 to 21 November 2026), counting requests by user agent:

Crawler Requests
Googlebot 717
bingbot 193
ClaudeBot 142
OAI-SearchBot 97
ChatGPT-User 34
GPTBot 24

ChatGPT-User is a person's ChatGPT fetching one of our pages to answer a question, in real time. That only works if the page has text in its HTML. A canvas-only Flutter page gives the assistant nothing to quote.

One trap: Google-Extended is a robots.txt token, not a user agent. It never appears in logs, so a zero there means nothing.

Readable HTML is half the job; Core Web Vitals are the other half. Our mobile PageSpeed score was 60, with 9.9 seconds of Total Blocking Time. Flutter's multi-threaded web renderer needs cross-origin isolation, so we sent two headers:

Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Embedder-Policy: credentialless

Mobile TBT dropped to 0.2 s and the home page scored 89. Browsers without support fall back to the single-threaded renderer automatically. credentialless matters if you load third-party iframes: require-corp would break most of them.

Probably not if your app sits behind a login: nothing crawls it. If your Flutter web app has public pages that should be found, you have options:

seo`` esen_seo``hydraline`` flutter_prerender``flutter-web-seo Pick the one that matches where your content lives. Ours lives in a database, so generating shells from data was the simplest thing that could work, and it has run in production on every deploy since October.

If you try it, issues and pull requests are welcome.

── more in #generative-engine-optimization 4 stories · sorted by recency
── more on @typeordrop 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/how-we-made-a-185-pa…] indexed:0 read:4min 2026-11-24 · —