flutter_gen icon indicating copy to clipboard operation
flutter_gen copied to clipboard

[FR]: `package_parameter_enabled` flag in `fonts.outputs`

Open tsinis opened this issue 2 years ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Describe the problem

Thanks for the package! Right now it's only possible to provide package_parameter_enabled for assets, but not fonts. But if the pub-package project only contains fonts but not assets it could be nice to have a package_parameter_enabled flag for fonts too. This will be especially for those devs who don't won't to rely on Text's widget packageName parameter and want to use font family directly.

Describe the solution

package_parameter_enabled flag (optional, default to false), will additionally generate strings with 'packages/<package_name>/<font_family_name>'

Additional context

https://medium.com/flutter-community/including-assets-in-a-flutter-package-dd4a82a38ca9

Code of Conduct

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

tsinis avatar Feb 12 '23 11:02 tsinis