How to Dynamically Set Icon Properties from Database Using Custom Functions in FlutterFlow?

Widgets & Design

I'm attempting to dynamically configure the properties of an Icon widget in FlutterFlow by utilizing the "Set from variable" option within the "Icon Properties" section. This feature requires a variable of Type: Icon, but I'm encountering difficulties in creating such a variable.

It appears that Custom Functions in FlutterFlow cannot return a value of type Icon. Is there a recommended method or workaround to dynamically set the Icon properties based on data retrieved from the database?

I've reviewed FlutterFlow's documentation but haven't found relevant information on this topic.

Screenshot from 2024-11-20 16-56-55.png
40.17KB

What have you tried so far?
  • Attempted to create a Custom Function that returns a type Icon, but it seems FlutterFlow does not allow custom functions to return this type.

  • Explored FlutterFlow's documentation for any guidance on creating variables of type Icon or using them dynamically—couldn't find relevant information.

Did you check FlutterFlow's Documentation for this topic?
Yes
6
1 reply