r/FlutterDev • u/Ok-Dig9943 • Jul 04 '26
Dart How does your team handle API contracts, testing bottlenecks, and feature creep? (Flutter app, multiple products, 3+ years old)
Looking for advice on restructuring our dev workflow. Here's our current setup:
Team structure:
- 1 Team Lead/Manager — handles backend API + database, reviews dev code (briefly), reviews UI/UX after design, and writes native code to bridge with Flutter
- 10 Devs — write Flutter code, some also write their own native code to connect with Flutter (each dev covers multiple products, but only specific features)
- 3 Testers — test all products + write unit tests and test cases
- 2 UX/UI designers — design UI and review it after dev implementation
- 1 SE — helps with testing when free from other work
We maintain 10 different products (all POS-related) with this team.
Problems we're running into:
1. API bottleneck. When a new product/feature comes in, devs get assigned to it. If they need a new API, they go to the team lead. Problem: the lead can't keep up, so APIs often arrive without being tested first. Devs then have to test the API themselves on top of their own workload — since each dev is already juggling multiple products, they only do a surface-level check (does it return 200, not whether the data is actually correct). There's also no documentation, so months later nobody remembers what an API does.
2. Test cases/unit tests arrive too late. Currently devs only get test cases after a feature/product is already built, so by the time testing happens, a lot of edge cases are missed and bugs pile up.
3. Constant new bugs, testing overload. Devs don't have time to review each other's code. The app has grown into so many features that nobody can keep track of them all, and there's no documentation. On top of that, when a client requests a feature, it goes straight to a dev with no analysis of whether it's actually necessary or how it overlaps with existing functionality. Over time this caused massive feature overlap, making settings/categories a mess to organize.
4. Technical debt from 3+ years of this. We now have recurring bugs that need repeated fixing (some issues have failed testing 5+ times) and we've had to start holding dedicated meetings just to deal with repeat/duplicate bug reports.
Has anyone dealt with a similar situation — small backend team unable to keep up with multiple product lines, testing happening too late in the cycle, feature requests going straight to devs without triage? What process changes or tools helped you the most? Would appreciate any real-world experience, not just theory.
2
u/buzziebee Jul 04 '26
The way I think works best personally is to have teams define and agree on your backend contracts first before any development. Openapi specs for instance. Then you can codegen both the backend endpoints and clients and work in parallel without blocking each other.
Things also shouldn't ship without test coverage IMO so this whole "we test after it's built" situation shouldn't be happening. Code reviews and tests are just as important as shipping in order to maintain a steady velocity.
I see you only have your team lead listed as doing code reviews. I think you should expand that out to have the rest of the devs review each others code too. You didn't mention it but do you have CI/CD for running things like linters and tests for every open pull request?
It's about slowing down a bit to go faster. Any team I've worked on who've sacrificed quality and craft for speed has very quickly slowed down and created a buggy mess. Things don't need to be perfect and you should be pragmatic, but the whole "ship fast and break things" only works for a while.
Also refining feature requests and planning across the team before committing to the work helps a lot with organizing who's doing what, how it will work, and how it will be built. No one likes planning but it's really important for working as a team. You don't need to spend 16 hours a week all in meetings, but you do need some. Again it's sacrificing some time which could be spent blasting out buggy code for well organized and planned code.
But even with all of these other systems tweaks you still have the core problem which is you have too much need for backend changes without enough people who can work on the backend. That's a major bottleneck. You probably need to rebalance it so you have more backend capacity. Could you hire in another backend dev? Or hire a contractor/Freelancer to help get things into shape for a few months? Or would some of your devs be interested in becoming full stack?
What's your backend written in? Is it a monorepo or individual repos? Monolith or microservices?
1
u/HungryLand Jul 04 '26
I had this exact situation but with a smaller team and honestly never found the solution. Reflection left me feeling that overpromising and underresourced was the problem. Management can't keep filling feature requests and expect them in the next sprint. Every feature add debt a that is basically not being accounted for here, And the cycle continues. Sometimes breaks and throws all timeframes out, management beat you with a stick because you did not deliver a feature on time and caused downtime in another area.
I think if people realised the true lengths a software team goes to deliver sometime correctly they would stop asking for features so quickly.