Want to show current date if not selection from datepicker.

Actions & Logic

Hi, need some help configuring it may be a simple thing for you but as a newbie not configured. I have a text where I want to show dates. The default date will be the current date. Now if the user taps on it then the datepicker will appear & user can select any date. If the user selects any date then it will update the date text current date to the selected date.

What have you tried so far?

My thought: making pagestate variable say "displayDate". Binding it to date text. Assign the current date value to "displayDate"(This part I can not configured). Add action to date text to pick datepicker. Add another action to give condition if date picked then assin this value to "displayDate" variable else do nothing. If any better easy solution is there please share. It will be great help if you share in details/image.

Did you check FlutterFlow's Documentation for this topic?
Yes
2 replies