flame icon indicating copy to clipboard operation
flame copied to clipboard

Render an IconData in the Flame Engine

Open imaNNeo opened this issue 10 months ago • 2 comments

Problem to solve

In the Flutter widgets, we have Icon that allows you to render an IconData in the widget tree. But there is no similar concept/component in the Flame engine

Proposal

I suggest to create something like IconComponent that allows you to render and IconData in the Flame Component System.

This way, we will also be able to use tabler_icons (because it provides IconData)

More information

No response

Other

  • [ ] Are you interested in working on a PR for this?

imaNNeo avatar Feb 09 '25 23:02 imaNNeo

You can also achieve this similarly by just loading the icons packages directly as a font file and working with either TextComponent or implementing your own renderers.

exoad avatar Feb 15 '25 03:02 exoad

If anyone is keen to work on this I think an IconComponent could be a cool addition.

spydon avatar Feb 18 '25 09:02 spydon