FlutterGen / flutter_gen

The Flutter code generator for your assets, fonts, colors, … — Get rid of all String-based APIs.
https://pub.dev/packages/flutter_gen
MIT License
1.44k stars 143 forks source link

Any interest in supporting stencils? #296

Open pastre opened 1 year ago

pastre commented 1 year ago

swiftgen uses stencils as a very smart way to provide templates to manipulate the generated code. I'd be happy to implement a feature for flutter_get, if the community finds that's the path that the tool should follow

First use case that I found for this is to manipulate how code is generated and add/remove default parameters. For instance, I'm working on a private module for my company, and all images will be in that package. It makes sense to pass the module's name as the default parameter for the package property. Such can be achieved via a messy YAML configuration, but that won't scale or cover future cases

wasabeef commented 1 year ago

@pastre I've been interested in improving the extensibility of other plugins such as Lottie and SVG, but I haven't been able to start because it seems like a lot of work.