What's the general approach specifying and referencing an asset within a Flutter/Dart package?
I have tried various approaches and I always get the error Unable to load asset: path/to/image when trying to create an image widget: Image(image: AssetImage('path/to/image')).
My goal is to create custom buttons library and some of them should come with custom icons (images).
I would like to use the images within my own package, not outside in an app and expose complete button widgets instead.
For example, let's say I'm creating a package called wolf:
wolf/wolf/lib/wolf.dartwolf/lib/src/Wolf.dartwolf/pubspec.yaml
Where in the above directory structure do you put an asset, how do you define it in pubspec.yaml (if necessary) and how do you use it in wolf/lib/src/Wolf.dart?