/generate-resource-dart-code

vscode-generate-resource-code

Primary LanguageTypeScript

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