Automatically generate the dart file for pubspec.yaml
The purpose of this library is to help flutter developers automatically generate asset corresponding dart files to help developers release their hands from this meaningless job, and the open source community has a lot of the same functionality.
This library is based on dartlang's build library.
git clone https://github.com/CaiJingLong/flutter_resource_generator.git cd flutter_resource_generator pub get dart bin/resource_generator.dart $flutter_project
pub global activate flutter_asset_generator
convert filed name example:
images/1.png => IMAGES_PNG images/hello_world.jpg => IMAGES_HELLO_WORLD_JPG
Errors will occur in the following situations
images/ main_login.png main/ login.png
Because the two field names will be exactly the same.