Support for Flutter & Dart commands (flutter pub, flutter analyze, dart analyze)
#1,098 opened on Apr 9, 2026
Repository metrics
- Stars
- (48,085 stars)
- PR merge metrics
- (Avg merge 11d 1h) (45 merged PRs in 30d)
Description
Feature Request: Flutter & Dart Support
Context
I'm using RTK extensively and ran rtk discover, which showed significant missed savings from Flutter and Dart commands.
Unhandled Commands
- flutter pub (30x)
- flutter analyze (30x)
- dart analyze (5x)
Example usage:
- flutter pub get 2>&1
- flutter analyze --no-pub 2>&1
- dart analyze lib/... 2>&1
Problem
These commands generate large outputs, especially:
- flutter analyze → very verbose lint + diagnostics
- dart analyze → similar static analysis output
Currently RTK does not optimize or filter these outputs, leading to unnecessary token usage.
Suggested Solution
Add support similar to existing commands like rtk grep / rtk read, for example:
-
rtk flutter analyze- Summarize issues (errors, warnings, info)
- Group by file
- Collapse repeated diagnostics
- Show counts + top issues
-
rtk flutter pub- Filter install logs
- Highlight only:
- errors
- dependency conflicts
- version changes
-
rtk dart analyze- Same approach as flutter analyze
Expected Benefit
From rtk discover:
~65 executions → significant token savings (flutter analyze alone is very heavy)
Additional Notes
Flutter/Dart workflows are common, so this could benefit a large number of developers using RTK.
Happy to help test or provide sample outputs if needed.