Closed bounty1342 closed 4 years ago
@bounty1342 How do you propose to achieve this: Assets.images.login.bar.icon
?
@BirjuVachhani : this is a very naive solution, Link
This could surely be perfected.
@bounty1342 This makes sense but don't you think managing assets by screens or modules will complicate things like:
pubspec.yaml
Don't want to speak about everybody but my asset folder is already organized like this :
I presume one alternative could also be : Assets.images_login_bar_icon
If you want a file to be used by several view, you place it in the cross path (directory wise), or at the root...
Closing this as I'm having no plans for this in near future.
Hey,
I think it would be easier to always import the same base class, with all the generated class as field> Then we can use
Class.subclass.img
to retrieve the image.It would be even better, if this could match the directory :
Then we can access
Assets.images.login.bar.icon
pretty easily.Let me know what you thinks about it. Regards