Skip to content

Some issues with the plugin #35

@mtrfnvwork

Description

@mtrfnvwork

Incorrect works in some cases:

  1. If two different folders have folders with the same name the plugin generates one class. For example, if I have assets/icons/my_folder and assets/images/my_folder the plugin will generate one class for the folder with "my_folder" name.
  2. If I have a folder like assets/images/drawer/backgrounds and there is no another folders or assets inside assets/images/drawer folder, resulting class won't contain all parts of the path. It will be like Assets.images.backgrounds, without "drawer", so it's incorrect.

Also it's hard to migrate from v2. Give the opportunity to have strings instead of classes. I mean that expression like Assets.icons.user can return String, not Class. It can be configurable inside pubspec.yaml file.

And it will be great if you implement a configuration that disable generation of the methods to create Widgets like Image.asset or SvgPicture.asset. In come cases it don't need inside the project.

Many thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions