Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>generate-resource-dart-codeNew to Visual Studio Code? Get it now.
generate-resource-dart-code

generate-resource-dart-code

swordjs

|
708 installs
| (1) | Free
This is a vscode plugin for flutter projects to convert images and svgs in the resource folder to dart code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

generate-resource-dart-code

中文

This is a vscode plugin for flutter projects to convert images and svgs in the resource folder to dart code

Features

  • 👂 Always monitor images and svgs in your assets folder
  • 🛞 Automatically generate elegant dart code to lib/assets.dart
  • 😄 Provides a vscode command to easily generate lib/assets.dart for your folder

Commands

ctrl + shift + p

  • Generate Resource Dart Code : Generate lib/assets.dart or reload lib/assets.dart

Start

You don't have to do anything, just create assets/images and assets/svgs in the root directory, and use relatively standard file names, no matter what operations you do in these two folders (delete, add, modify, etc.) , it will be automatically synced to lib/assets.dart

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