Skip to content
Articles
Article

Streaming ChatGPT and Gemini replies in Flutter without the flicker

by Anant mandanka dev.to

3 min read

If you have built an AI chat screen in Flutter, you have probably seen this: the reply streams in, and the screen fights it. Raw ** shows up until the closing pair arrives, a code block jumps when the highlighter kicks in, and long answers get slower with every chunk. I hit all of that while building chat screens, so I wrote llm_markdown, a Markdown widget made for replies that are still being wr…

Forum

Questions about this, or something to add?

Discuss on the forum

Topics AI in Flutter apps

Report this · Wrote this? Claim it

FlutterX is supported by