← back to blog

How we use Claude to ship Flutter features 3x faster

AI pair-programming isn't magic — but with the right workflow it genuinely changes what a small team can ship. Here's our actual process.

by Horizech Team3 min read

At Horizech, we've been building Flutter apps for years. When AI coding tools matured, we were sceptical — we'd seen a lot of hype before. Twelve months later, we can say clearly: the right AI workflow genuinely multiplies what a small team can ship.

Here's what actually works for us.

The honest baseline

We're not claiming AI writes all our code. It doesn't. What it does:

  • Eliminates the blank-page problem for boilerplate
  • Catches logic errors during planning (before writing a line)
  • Speeds up code review by generating a first-pass critique
  • Handles repetitive transformations (JSON → Dart models, API → widget)

The developer still has to think. The AI just removes the friction around thinking.

Our workflow step by step

1. Plan in plain English first

Before touching the IDE, we describe the feature to Claude:

I need to build a filterable product grid in Flutter.
It gets products from our Horizech Workspace API (REST, returns JSON).
Users can filter by category and sort by price.
State should be managed with Riverpod.
Walk me through the architecture before we write code.

Claude outlines the providers, the widget tree, the API layer. We push back on anything that doesn't match our conventions. Only then do we start coding — with a clear map.

2. Generate the model layer

Give Claude your JSON response and ask for the Dart model:

Here's the API response for a product:
{ "id": 1, "name": "Widget Pro", "price": 29.99, "category": "tools" }

Generate a Dart freezed model with fromJson/toJson.
Follow our naming convention: ProductModel.

Done in 10 seconds. Reviewed in 30 more.

3. Write the provider with context

Using Riverpod 2.x, create a StateNotifierProvider for products.
It should:
- Fetch from /api/products
- Support a CategoryFilter enum
- Expose loading/error/data states
- Use our existing DioClient (imported from lib/services/dio_client.dart)

The key is giving Claude your actual conventions and imports. Generic prompts give generic code.

4. Code review loop

After writing a widget or service, paste it in and ask:

Review this Flutter code for:
1. Performance issues (unnecessary rebuilds, missing const)
2. Edge cases I haven't handled
3. Anything that breaks Flutter best practices

This catches things a tired developer misses at 5pm.

What we've learned

Context is everything. A Claude conversation with your actual file structure, your packages, your conventions produces code you can merge. A generic "write Flutter code" prompt produces code you'll rewrite from scratch.

Don't fight the model. If Claude suggests a pattern you haven't used, read it before dismissing it. We've adopted several Riverpod patterns this way that genuinely improved our codebase.

Use it for the boring stuff. Repetitive adapters, test stubs, documentation strings — AI earns its keep here, freeing you for the interesting problems.

The result

On our last project, a feature that would've taken two developers a week took one developer three days — and the code quality was higher because we had time to properly review it.

That's the real value. Not magic. Just less friction in the right places.


We'll do a deeper dive on our Riverpod patterns in the next post. Subscribe below if you want that in your inbox.

⚡
Written by Horizech Team

Part of the team at Horizech — we build Flutter apps, AI integrations, web platforms, and games. If you want this done for you, get in touch.

hire us →
← all posts