Flutter Checker

A VS Code extension that helps you identify outdated packages in your Flutter/Dart pubspec.yaml
files by highlighting version lines with visual indicators.
Features
- 🔍 Automatic Detection: Automatically checks for outdated packages when you open or modify
pubspec.yaml
files
- 🎨 Visual Highlighting: Highlights outdated package versions with colored underlines and indicators
- 📊 Simple Hover Info: Clean hover tooltip showing current → latest version
- 🔗 Quick Navigation: Click to open package page on pub.dev
- ⚡ Fast Performance: Uses caching to minimize API calls to pub.dev
- 🎛️ Configurable: Customize colors, auto-check behavior, and more
How it Works
- Package Detection: The extension parses your
pubspec.yaml
file to extract package dependencies
- Version Checking: It queries the pub.dev API to get the latest versions of your packages
- Visual Highlighting: Outdated packages are highlighted with:
- Colored background and border
- Version comparison in the editor
- Simple hover tooltip with version info
- Overview ruler indicators
Usage
Automatic Mode (Default)
The extension automatically checks for outdated packages when:
- You open a
pubspec.yaml
file
- You modify a
pubspec.yaml
file
- The file is saved
Manual Mode
You can also manually trigger the check:
- Open Command Palette (
Ctrl+Shift+P
/ Cmd+Shift+P
)
- Run
Flutter Checker: Check for Outdated Packages
Clear Highlights
To remove all highlights:
- Open Command Palette (
Ctrl+Shift+P
/ Cmd+Shift+P
)
- Run
Flutter Checker: Clear Package Highlights
Navigation Features
Simple and clean interaction with outdated packages:
Hover Information: Hover over any highlighted package to see:
- Package name
- Current → Latest version comparison
- Clickable link to open pub.dev
Command Palette: Use this command:
Flutter Checker: Open Package on pub.dev
Configuration
You can customize the extension behavior in VS Code settings:
{
"flutterChecker.enabled": true,
"flutterChecker.autoCheck": true,
"flutterChecker.highlightColor": "#ff6b6b",
"flutterChecker.backgroundColor": "#ff6b6b20",
"flutterChecker.borderColor": "#ff6b6b",
"flutterChecker.textColor": "#ff6b6b",
"flutterChecker.versionTextColor": "#ff6b6b",
"flutterChecker.checkInterval": 300
}
Settings
enabled
: Enable/disable the extension (default: true
)
autoCheck
: Automatically check for outdated packages (default: true
)
highlightColor
: Main highlight color for overview ruler (default: #ff6b6b
)
backgroundColor
: Background color with transparency (default: #ff6b6b20
)
borderColor
: Border color for highlighting (default: #ff6b6b
)
textColor
: Color for the "(outdated)" label (default: #ff6b6b
)
versionTextColor
: Color for version comparison text (default: #ff6b6b
)
checkInterval
: Interval in seconds between automatic checks (default: 300
)
Commands Available
Flutter Checker: Check for Outdated Packages
- Manual check
Flutter Checker: Clear Package Highlights
- Remove highlights
Flutter Checker: Open Package on pub.dev
- Open package page
Installation
From VS Code Marketplace
- Open VS Code
- Go to Extensions (
Ctrl+Shift+X
/ Cmd+Shift+X
)
- Search for "Flutter Checker"
- Click Install
From Source
- Clone this repository:
git clone https://github.com/muhmmedAbdelkhalik/flutter-checker.git
cd flutter-checker
- Install dependencies:
npm install
- Build the extension:
npm run compile
- Press
F5
to run the extension in a new Extension Development Host window
Development
Prerequisites
- Node.js (v16 or higher)
- npm or yarn
- VS Code
Building
npm install
npm run compile
Testing
npm run watch
Then press F5
in VS Code to run the extension in a new window.
Compatibility
- VS Code: 1.74.0 or higher
- Cursor: Compatible (uses VS Code extension API)
- Platforms: Windows, macOS, Linux
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
License
MIT License - see LICENSE file for details.
Support
If you encounter any issues or have feature requests, please file an issue on the GitHub repository.