rtk-ai/rtk

Support for Flutter & Dart commands (flutter pub, flutter analyze, dart analyze)

オープン

#1,098 opened on 2026/04/09

 (6 件のコメント) (11 件のリアクション) (0 人の担当者)Rust (2,914 件のフォーク)batch import
area:clieffort-mediumenhancementhelp wantedpriority:medium

Repository metrics

Stars
 (48,085 個のスター)
PR merge metrics
 (平均マージ 11d 1h) (30d で 45 merged PRs)

説明

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.

コントリビューターガイド