r/FlutterFlow • u/zoyanx • 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
r/FlutterFlow • u/zoyanx • Oct 24 '24
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.
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.