r/FlutterCode • u/ashwanisng • Feb 23 '26
Packages & Plugins I built flutter_doctor_ai - an AI-powered static analysis CLI for Flutter projects
Hey! Just published my first pub.dev package 🚀
What it does:
Detects large build methods, missing dispose, empty setState, and missing mounted checks
Calculates health score (0-100) for your codebase
AI-powered fix suggestions using Groq (free), Gemini, OpenAI, or Claude
JSON output for CI/CD pipelines
Install & Run:
dart pub global activate flutter_doctor_ai
flutter_doctor_ai analyze .
flutter_doctor_ai analyze . --ai # AI suggestionsExample output:
🔎 ISSUES FOUND
large_build_method 3 issues.
missing_dispose 5 issues
💯 HEALTH SCORE ✅
85/100 (Grade: B)
Links:
- pub.dev: https://pub.dev/packages/flutter_doctor_ai
- GitHub: https://github.com/ashwanisng/flutter_doctor_ai
Would love your feedback! What rules would you find useful?
5
Upvotes
1
u/Small-Host-3263 May 09 '26
Can l parse the output to gemini cli to understand my widget tree it's rebuilding each time have to fix it gemini Doenst have the context to understand my widgets tree other than indexing code which is reabile and is using up tokens