Ambroise Dhenain
ย ยทย No-Code Maker - Co-CTO - Consultant - Airtable/Stacker/Noloco Expert | WeWeb/Xano

Dynamic icon as Component Local State

I'm trying to make a IconChip component, but I think it's not possible natively, I tried providing the Icon's name (Font-Awesome) as Local State, but using it in the icon as a variable is not allowed (type String).

I guess the issue is the "String" type isn't what's expected, but there is no other choice that might be compatible.

https://community.flutterflow.io/c/community-custom-widgets/post/introducing-a-custom-flutter-widget-dynamic-icon-renderer-2driq7JpSfVGJ4V explains how to add a Dynamic component, and my guess it's currently the only way to go?

1
7 replies