-
-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate constants #185
Comments
It is impossible to declare const field without static modifier: If you want it to be const, prefer to set flutter_gen:
assets:
package_parameter_enabled: false
# Optional
# Avaliable values:
# - camel-case
# - snake-case
# - dot-delimiter
style: dot-delimiter Example: flutter_gen/packages/core/test_resources/actual_data/assets_camel_case.gen.dart Lines 14 to 15 in 1a1ba2c
|
Oh you are right. Thank you! |
static const String imagesChip1 =
'assets/images/chip1.jpg'; how to get only String for image |
hi, im using flutter_gen.assets.style as camel-case or snake-case. and same issue . |
For example,
can be
Similar holds for AssetGenImage and so on.
Then we can use that value as constant happily. For example,
can be
The text was updated successfully, but these errors were encountered: