flutter_gen icon indicating copy to clipboard operation
flutter_gen copied to clipboard

[FR]: Add ignore property to options file

Open ivan-dubovenko-m10 opened this issue 2 years ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Describe the problem

We are using mason to generate template of packages to out app and put .gitkeep to assets folder.

In generated asset file we see:

static const String gitkeep = 'assets/.gitkeep';

Describe the solution

It will be nice if will be option to ignore files:

ignore:
  - "**/.gitkeep"

Additional context

No response

Code of Conduct

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

ivan-dubovenko-m10 avatar May 26 '23 02:05 ivan-dubovenko-m10

Same FR,when I use number as directory, fluttergen get error 截屏2023-06-25 11 39 37 截屏2023-06-25 11 39 24 Or, support number directory?

anchao-lu avatar Jun 25 '23 03:06 anchao-lu

AnyUpdates?

dev-shvetsov avatar Mar 10 '24 20:03 dev-shvetsov

Use excludes under the flutter_gen > assets. See https://github.com/FlutterGen/flutter_gen/blob/main/README.md#excluding-generating-for-assets.

AlexV525 avatar Jun 24 '24 05:06 AlexV525