I am trying to use the package calendar_date_picker2 (https://pub.dev/packages/calendar_date_picker2/example) in my FlutterFlow App. I have created a widget to display the calendar and it all looks good.
The widget by default loads the values defined in the class _MyHomePageState (as show in the example code) default values in the list _multiDatePickerValueWithDefaultValue
I want to set the default values of what the user has previous selected on their calendar (stored in FireStore database as List "plannedDays" in "user" collection.
How can I use the data stored in FireStore collection instead of the defaultValues as stated in the example.
Thanks in advance for your help and suggestions.
I am trying to run a query on the authenticated user collection and assign the output to a List<DateTime?> and then assign it to _multiDatePickerValueWithDefaultValue.
But since this is my first time, I am not sure how to proceed.