BirjuVachhani / spider

A small dart library to generate Assets dart code from assets folder.
https://spider.birju.dev/
Apache License 2.0
190 stars 19 forks source link

Add ability to concatenate path to the same class_name #16

Closed bounty1342 closed 4 years ago

bounty1342 commented 4 years ago

Hi,

A nice feature will be to add several path to the same class, giving the prefix more meaning. Please find an exemple below :

groups:
  - path: assets/images
    class_name: AssetsImages
    package: assets
    types: [.png, .jpg, .jpeg, .webp, .webm, .bmp]
  - path: assets/onboarding
    class_name: AssetsImages
    package: assets
    prefix:onboarding
    types: [.png, .jpg, .jpeg, .webp, .webm, .bmp]

Regards

bounty1342 commented 4 years ago

Also, you can generate an index.dart exporting all generated class. This way, only one import could be made to use them.

amreniouinnovent commented 4 years ago

@BirjuVachhani Can it search for subpaths too so I don't have to add several paths just /assets/images/* instead of assets/images/fruits , assets/images/vegetables

BirjuVachhani commented 4 years ago

It doesn't as the Flutter framework itself doesn't.

amreniouinnovent commented 4 years ago

@BirjuVachhani Anyway it is a great library it saves me a lot of time. Now what I missing is a similar one but for localization auto-generate Thanks a lot

bounty1342 commented 4 years ago

https://pub.dev/packages/flappy_translator ?

On Thu 26 Mar 2020 at 20:18, Amr Abdelwahab notifications@github.com wrote:

@BirjuVachhani https://github.com/BirjuVachhani Anyway it is a great library it saves me a lot of time. Now what I missing is a similar one but for localization auto-generate Thanks a lot

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/BirjuVachhani/spider/issues/16#issuecomment-604632116, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQD3NMEX4BDNHIKO32AE5TRJOS67ANCNFSM4LCME23A .

bounty1342 commented 4 years ago

@BirjuVachhani Anyway it is a great library it saves me a lot of time.

Now what I missing is a similar one but for localization auto-generate

Thanks a lot

https://pub.dev/packages/flappy_translator

amreniouinnovent commented 4 years ago

@bounty1342 Awesome very sweet library