Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Flutter Assets Generator ProNew to Visual Studio Code? Get it now.
Flutter Assets Generator Pro

Flutter Assets Generator Pro

Irshad KP

|
14 installs
| (0) | Free
Generate Flutter assets.dart file from assets directory
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Flutter Assets Generator

🚀 Automatically generate Flutter assets.dart file from your assets directory with proper variable naming conventions.

Features

  • 🔍 Smart Asset Scanning - Automatically scans your assets directory and subdirectories
  • 📝 Clean Code Generation - Generates properly formatted Dart code with camelCase variable names
  • ⚙️ Configurable Settings - Customize ignored file extensions, output paths, and more
  • 🎯 Context Menu Integration - Right-click on assets folder for quick generation
  • 📁 Flexible Structure - Works with any asset folder structure
  • 🚫 Smart Filtering - Automatically ignores font files and other unwanted extensions

Installation

  1. Open VS Code
  2. Go to Extensions (Ctrl+Shift+X)
  3. Search for "Flutter Assets Generator Pro"
  4. Click Install

Usage

Method 1: Context Menu (Recommended)

  1. Right-click on your assets folder in VS Code Explorer
  2. Select "Generate Assets"
  3. The extension will create lib/generated/assets.dart

Method 2: Command Palette

  1. Open Command Palette (Ctrl+Shift+P)
  2. Type "Flutter Assets: Generate Assets"
  3. Press Enter

Method 3: With Custom Options

  1. Open Command Palette (Ctrl+Shift+P)
  2. Type "Flutter Assets: Generate Assets with Options"
  3. Configure custom paths and settings

or

Use key bindings alt+i to generate

Available Commands

Command Description
Flutter Assets: Generate Assets Generate assets file with default settings
Flutter Assets: Generate Assets with Options Generate with customconfiguration

Configuration

Configure the extension through VS Code settings:

{
 "flutterAssetsGenerator.assetsDir": "assets",
 "flutterAssetsGenerator.outputFile": "lib/generated/assets.dart",
 "flutterAssetsGenerator.ignoredExtensions": [".ttf", ".otf"]
}

Files being ignored?

  • Check your ignoredExtensions setting
  • Font files (.ttf, .otf) are ignored by default
  • Add custom extensions to ignore list if needed

Author

Irshad KP

irshadkp.dev@gmail.com

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft