Closed BenjiFarquhar closed 10 months ago
assets:
- assets/images/
# - assets/images/2.0x/
# - assets/images/3.0x/
- assets/map_styles/
This is the correct way to specify assets. There is no need to add 2.0x and 3.0x. Please check the documentation: https://docs.flutter.dev/ui/assets/assets-and-images#resolution-aware
@lcdsmao Ah, I see. Thanks!
@lcdsmao Ah, I see. Thanks!
assets: - assets/images/ # - assets/images/2.0x/ # - assets/images/3.0x/ - assets/map_styles/
This is the correct way to specify assets. There is no need to add 2.0x and 3.0x. Please check the documentation: https://docs.flutter.dev/ui/assets/assets-and-images#resolution-aware
if do this, did not generate image assets code, any solution? FlutterGen v5.3.2
Is there an existing issue for this?
Version
5.3.2
Command type
build_runner (Default)
What happened?
This works:
this is all of the images in those 2.0x and 3.0x folders (they have the exact same file names in both):
Relevant a pubspec.yaml.
Relevant log output
Code of Conduct