Trying to solve the problem of externally updating the start and end, I created the setAngles method, which defines the angles, code moved from the initState method earlier, I removed the state (TimeRangePickerState) from the TimeRangePicker widget for the state to be accessible in other classes via GlobalKey.
Trying to solve the problem of externally updating the
start
andend
, I created the setAngles method, which defines the angles, code moved from theinitState
method earlier, I removed the state (TimeRangePickerState
) from theTimeRangePicker
widget for the state to be accessible in other classes viaGlobalKey
.