🚀 Dart AI Assistant
AI-powered Dart/Flutter development assistant that learns your coding patterns, predicts your next code, and detects errors in real time.

✨ Features
🧠 Advanced Learning Engine – Learns your coding patterns, preferences, and naming conventions
📚 Import Project for Learning – Instantly learn from an existing project instead of waiting for patterns to develop through normal usage
🏹 Code Prediction – Predicts your next lines of code using your learned patterns and coding style
🛠 Smart Error Detection – Real dart analyze diagnostics on save, plus live regex-based feedback while you type
🎨 Auto Code Formatting – Keeps your Dart code clean and consistently formatted
🔒 Security Scanning – Detects common security vulnerabilities and risky coding patterns
📊 Code Health Reports – Clickable, auto-refreshing reports that take you directly to the affected line
📈 Learning Dashboard – See what Dart AI has learned and explore patterns across your code
📖 Knowledge Base – Import documentation, tutorials, and notes to provide additional context for suggestions
✅ 100+ Dart & Flutter Snippets – Built-in snippets for common development tasks, including Uganda-specific Mobile Money patterns
📦 Installation
From the VS Code Marketplace (Recommended)
Search for "Dart AI Assistant" in the Extensions panel (Ctrl+Shift+X), or install directly:
code --install-extension a-i-0-studio.dart-ai-assistant
Or visit the Marketplace listing.
From Source
# Clone the repository
git clone https://github.com/Ben09d/dart-ai-assistant.git
cd dart-ai-assistant
# Install dependencies
npm install
# Compile TypeScript
npm run compile
# Package the extension
npm install -g @vscode/vsce
vsce package
Then install the generated .vsix file:
code --install-extension dart-ai-assistant-1.0.11.vsix
Or in VS Code: Extensions → ... → Install from VSIX
🚀 Usage
- Open any
.dart file
- Start coding — the extension learns as you go
- New: Run
Ctrl+Shift+P → "Dart AI: Import Project for Learning" to instantly train on an existing project
- Use
Ctrl+Shift+F to auto-fix errors
- Check
Ctrl+Shift+P → "Dart AI: View Learning Dashboard" for insights
Key Commands
| Command |
Description |
Dart AI: Fix All Errors |
Auto-correct detected errors |
Dart AI: Import Project for Learning |
Train instantly from an existing project's codebase |
Dart AI: View Learning Dashboard |
See your coding pattern stats |
Dart AI: Show Next Line Predictions |
Get predicted next lines |
Dart AI: Show Code Health |
Clickable error/warning report for the current file |
Dart AI: Security Scan |
Scan for vulnerabilities |
Dart AI: Search Knowledge Base |
Search imported docs and notes |
⚙️ Configuration
{
"dartAI.enableAutoCorrect": true,
"dartAI.enableLearning": true,
"dartAI.securityLevel": "standard",
"dartAI.autoFormat": true,
"dartAI.anthropicApiKey": ""
}
Optional: Add an Anthropic API key for AI-powered suggestions and explanations.
Note: Real syntax-error detection uses the Dart SDK's dart analyze on save, so the official Dart extension should also be installed alongside this one for the full experience (syntax highlighting, hot reload, debugging).
🔐 Privacy
All learning data stays local on your machine. Nothing is sent externally unless you provide an API key for AI features.
🤝 Contributing
Contributions, issues, and feature requests are welcome!
- Fork the repo
- Create your branch (
git checkout -b feature/amazing-feature)
- Commit your changes
- Push and open a Pull Request
📄 License
MIT License — see LICENSE for details.
👤 Author
Built by Ben09d — Freelance Flutter Developer
⭐ If you find this useful, consider starring the repo, or leaving a review on the Marketplace!