You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, FlutterGen always generates AssetGenImage types for image assets. In our project, we need to use only String constants for asset paths (like static const String imagesLogo = 'assets/images/logo.png') without the AssetGenImage wrapper class. This is particularly important for projects migrating from string-based asset references or maintaining compatibility with existing codebases.
houzixiashanxiedaima
changed the title
[BUG]: Need option to generate only String constants without AssetGenImagean
[BUG]: Need option to generate only String constants without AssetGenImage
Jan 22, 2025
## What does this change?
Adds the explicit and configurable image integration.
Resolves#636 🎯
## Type of change
- [x] New feature (non-breaking change which adds functionality)
- [x] This change requires a documentation update
Is there an existing issue for this?
Version
5.8.0
Command type
build_runner (Default)
What happened?
Description
Currently, FlutterGen always generates
AssetGenImage
types for image assets. In our project, we need to use only String constants for asset paths (likestatic const String imagesLogo = 'assets/images/logo.png'
) without theAssetGenImage
wrapper class. This is particularly important for projects migrating from string-based asset references or maintaining compatibility with existing codebases.Current Behavior
Desired Behavior
Relevant a pubspec.yaml.
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: