How to set default value of datepicker from document query

Database & APIs

Hi

I have an edit screen for my Meal document. The Meal has a Cooked date field (datetime). When the user edits the record, the Firestore Update action will only update a Datetime field from the DatePicker. However when editing a current record there is no way to update the default value of the datepicker with the value in the database. So, how to update the record?

Example:

I have a meal cooked on the 29th March 2025. I edit the record and the edit screen updates the name, notes, etc etc. I change the notes and I hit the Update button. The update action takes the DatePicker value and saves it to the MealDate field. However as the user hasn't clicked the Datepicker icon to choose a new date, the default value of today is overwritted to the Mealdate field.

Without a way to put the current MeatDate field value in to the picker, how can I get this working?

Olly

What have you tried so far?

Nothing. I can't see a way to assign a value to a date picker from a database field.

Did you check FlutterFlow's Documentation for this topic?
No