How to inform a custom widget that a parameter value has changed?

Custom Code

I'm working on a feature that contains a calendar widget (https://pub.dev/documentation/table_calendar) that allows users to define milestones inside the calendar.

Each time a new milestone document is created, it should present the new date inside the calendar.

To do so, I've tried the following approaches:

1- Parameter - passing to the custom widget a DateTime parameter that is assigned by the relevant document. The problem is, it is assigned only once. How can I trigger each time a new value has arrived?

2- Custom Action as a parameter.

3- Having a callback custom function

It seems that I'm complicating myself with something that should be quite simple.

Any help would be appreciated.

Thanks in advance

Screenshots:

1- Creating the milestone item:

2- Presenting the milestone's date inside the calendar

(the image below reflects the current date (1/4) instead of the selected date as expected).
I wish to present inside the calendar the milestones dates (3/4 and 10/4) taken from the milestone documents data

.

What have you tried so far?

described above

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