flutter_gen icon indicating copy to clipboard operation
flutter_gen copied to clipboard

[BUG]: `fluttergen` command is not updated

Open msxenon opened this issue 7 months ago • 3 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Version

5.10.0

Command type

fluttergen but using dart run build_runner build is working as expected without generating AssetGenImage

What happened?

Hey there! I need it to generate paths only without AssetGenImage, so after turning it off -- its still being generated, I think this issue has been solved in https://github.com/FlutterGen/flutter_gen/pull/645, So any solution please?

  /// File path: assets/images/ui/x.png
  static const AssetGenImage imagesUiX=
      AssetGenImage('assets/images/ui/x.png');

  /// File path: assets/images/ui/s.svg
  static const String imagesUiS = 'assets/images/ui/s.svg';

### Relevant a pubspec.yaml.

```yaml
flutter_gen:
  assets:
    enabled: true
    outputs:
      class_name: AppAssets
      style: camel-case
  integrations:
    image: false
    flutter_svg: false
    rive: false
    lottie: false

Relevant log output


Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

msxenon avatar Mar 21 '25 14:03 msxenon