Skip to content

Provide API for getting Material Icons by string keyΒ #16189

@alanrussian

Description

@alanrussian

Right now, you have to reference Icons statically by calling the proper getter on the Icons class. It would be useful to be able to reference icons by their string key as well.

One use case: sharing code between AngularDart and Flutter apps. Let's say you have a Dart function that returns the material icon that should be used for some argument. What do you return? For web, you're required to specify the string key of the icon but Flutter doesn't let you do that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    would be a good packageSeparate Flutter package should be made for this

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions