flutter_gen icon indicating copy to clipboard operation
flutter_gen copied to clipboard

The Flutter code generator for your assets, fonts, colors, … — Get rid of all String-based APIs.

Results 91 flutter_gen issues
Sort by recently updated
recently updated
newest added

Having a & in the name of the asset causes the build to fail. ```Could not format because the source could not be parsed: line 222, column 27 of .:...

FlutterGen is wonderfull, but I do not know how to use it with Flame. Flame already assumes that images are in `assets/images/`. When loading an image `image.load('filename.png')` is used without...

wontfix

By making `AssetGenImage` [callable](https://dart.dev/guides/language/language-tour#callable-classes), instead of writing `Assets.images.profile.image()` we can write `Assets.images.profile()`. Will be happy to create a PR on this:)

This package has the exact same name than the [official flutter localization package](https://docs.google.com/document/d/10e0saTfAv32OZLRmONy866vnaw0I2jwL8zukykpgWBc/edit), resulting in name collision. After importing flutter_gen package (this package), my localization files are broken. `error: Target...

discussion

``` [SEVERE] Could not format because the source could not be parsed: line 105, column 25 of .: Methods must have an explicit list of parameters. ╷ 105 │ AssetGenImage...

enhancement
contributions welcome

build.yaml intended for generators configuration. So could be nice to use build.yaml configuration instead of pubspec.yaml configuration. ❌ **Bad** ```dart pubspec.yaml ``` ⭕️ **Good** ```dart build.yaml ```

contributions welcome

One might want to use this package separately from build_runner but still have it connected to project (to make the project easily portable). I've added instructions about this to readme

### What does this change? Add SVG web support ### Whats pending? Updating tests @wasabeef Feel free to make changes Maybe use this via additional key in pubspec??

For example I have the next settings: ``` # pubspec.yaml flutter: assets: - assets/images/profile.jpg ``` And the library generates path to the profile image. ``` Widget build(BuildContext context) { //...

### What does this change? Support [lottie](https://pub.dev/packages/lottie). Related: #47 ``` flutter_gen: integrations: lottie: true # here ``` - the file is distinguished by is in 'lottie' dir. https://github.com/HiroyukTamura/flutter_gen/blob/8175f15960733d5bd99ee694727027baa9756a59/lib/src/settings/asset_type.dart#L53-L54 - updated...