Hello everyone,
I have a custom component where an action is executed in the initState
method. This action returns a string, which is displayed in a Text
widget. The component also takes a DateTime
input, which is used in this action.
The component is used inside a page. The issue I'm facing is that when the DateTime
input of the component changes in the page, the action inside the component does not re-execute, and the output string remains unchanged.
I've already enabled the "Update Page on Change" checkbox, but the problem persists.
Is there a solution to ensure the action is re-triggered whenever the DateTime
input changes?
Thanks for your help!