A simple Visual Studio Code extension(Base on extension Flutter Image Asset Generator) which helps you generate your image assets from 3x to 1x, 2x. And rename your image before add to your assets folder.
In China, we usually generate 1x and 3x image from 3x. such as "蓝湖". That is the part different from extension Flutter Image Asset Generator).
-
After installing the extension, you should see a new option has been added your context menu when you right click on any folder inside the
Explorer
section namedFlutter-image-asset-tool: Add Image
: -
Click on it and select the image you want to add.. after that, the selected image will be choosen.
-
Modify Image name in the InputBox, and click confirm to the name of image.It will scaled down to 1x, 2x in seprated directories.
Currently, this extension only generates the scaled images.. but not adding them to the pubspec.yaml
file so you have to add them yourself.
Thanks for devmuaz. you can find more detail in project flutter-image-assets
Issues and pull requests are always welcome 😄
If you found this extension useful for you and liked it, please star the repo ⭐️ it would mean a lot!
MIT
Enjoy!