Best setup for Claude Code for Flutter?

I want to give Claude Code a serious try and wonder what is the best setup /recommendations for Flutter?
What rules do you use, how do you pass graphic designs?

1 Like

Why do you want an expensive paid option, when Gemini CLI has a generous free tier, and a fairly affordable paid level? Hard to beat that 1 million token window too.

1 Like

Interesting, because most people still claim that Claude Code is better for coding

I’d be interested to know what features “most people” find claude code has that gemini cli doesn’t?

I’ve been trying out Gemini cli for embedded work and I found it seems to cope just fine with sending it screenshots of my gdb crash stacktraces from vscode using the “@filepath” feature so I imagine sending images of designs should work the same.

Not so specific features, just that everyone I talked so far said that Claude still produces better code.
If your experience with Gemini is different then that’s really interesting.

Oh sorry Thomas, I see now, you meant the model not the cli tool.
Well I have to admit I stopped using claude at 3.7 but I would say that model is definitely comparable to Gemini pro 2.5 when working on our embedded c++ codebase, I haven’t used new claude models so unfort can’t compare them to gemini but as Randal pointed out, the huge context window is certainly a big selling point for gemini.

1 Like

For example, I coded a complete Minesweeper game from scratch in an hour with Gemini CLI, including documentation, and complete tests! (See the link nearby.) If you follow good software engineering practices, and don’t just try to “one-prompt-vibe-code” things into existance, Gemini CLI seems to have a fairly decent ability to code. I of course have context7 and the dart MCP, both of which give advantages for working with dart/flutter in particular.

2 Likes

I’ve been using Claude code for the past couple of months and it has been amazing at fixing issues, implement new features. in my experience, Claude has the best model for coding so far.
I recommend this Article from CodeWithAndrea.

1 Like

The Gemini cli is much worse than Claude Code, I’m yet to meet someone who’s tried both who would recommend it :slight_smile:

To answer the original question - I don’t have any particular setup, just VSCode + Claude Code with a special markdown document if I’m using mix (FLUTTER_MIX.md). I’ll switch between Claude Pro, GLM4.5 and Kimi K2 depending on the task. I always keep individual tasks small (don’t try and one-shot large features), give it samples of the structures I like, ask it to plan first, critique/amend its plan as necessary, tell it to generate tests. It’s not perfect (and in particular, I don’t use it all for lower-level work or anything that’s tricky) but for UI work and banging out pages and widgets where I can tolerate a bit of sloppiness, it’s very efficient.

I still haven’t found a good solution for designs - I’ve tried pasting screenshots, converting Figma files to PDF, direct MCP access to Figma files. None of them are very reliable.

1 Like

Why are people using Claude Code when Gemini CLI is essentially free, and in my opinion, better?

Interestingly, that wasn’t my experience with Gemini CLI at all! I tried it when it was first released (and then again about a month ago), and it was a bit hopeless. It failed to understand the problem, propose totally irrelevant edits, regurgitated non-working code, and half of the tool calls just failed outright.

That being said, things move quickly and maybe it has improved since then. If you’re reporting good results, it may be worth checking out again.

I’ve heard it’s horrible for vibe coding, but I don’t do that. I use Gemini CLI as ai-assisted software engineering. I carefully construct a PRD after first grounding the subject matters into the context, then turn that into a PLAN, and then execute one step at a time with the plan. Gemini is hungry for context, so you must give it all the things it needs first.

Did you config a MCP and rules?

I tried today gemini cli and I have to say it was a desaster compared to Claude code.
It took way too many approaches and got stuck in a loop at the end.
Its far from what CC offers

Did you config the Dart MCP server?

Yes I did but still the result and how often it made stupid approaches was horrible compared to CC