r/FlutterFlow • • Oct 24 '24

Offering free flutterflow help

If it doesn't require me to actually get on the project and work or fix it then it's free. Just love problem solving and got some time to kill.

17 Upvotes

80 comments sorted by

View all comments

1

u/CheesecakeOk124 Oct 25 '24

I have a custom function which returns a List<DateTime>. In my UI I have a DropDown selector which selects one of the DateTime from the list. Now based on the selected dateTime, I need to render my UI based on that DateTime (a very simple and common usecase).

But the output of the DropDown is not coming as a DateTime, rather it is coming as a string. Furthermore I have to format the DateTime in the DropDown to show something like 2024, October. And the DropDown is returning the same as it's selected value. This has made it very hard to work with the UI as now I have to create another function just to parse the DateTime before passing it to the UI. And everytime I change the format of the DropDown, I have to modify my parsing function.

How to make the DropDown output the DateTime directly (instead of String) so I can use it in my UI page.

1

u/zoyanx Oct 25 '24

I understood the problem you are facing but can't really tell you the solution without actually looking at the function and widget setup itself