Unverified Commit 0a694704 authored by Kostia Sokolovskyi's avatar Kostia Sokolovskyi Committed by GitHub

TimePickerDialog should dispose created ChangeNotifiers. (#136261)

parent e8bd5a32
......@@ -1630,6 +1630,14 @@ class _TimePickerInputState extends State<_TimePickerInput> with RestorationMixi
final RestorableBool hourHasError = RestorableBool(false);
final RestorableBool minuteHasError = RestorableBool(false);
@override
void dispose() {
_selectedTime.dispose();
hourHasError.dispose();
minuteHasError.dispose();
super.dispose();
}
@override
String? get restorationId => widget.restorationId;
......@@ -1988,6 +1996,14 @@ class _HourMinuteTextFieldState extends State<_HourMinuteTextField> with Restora
}
}
@override
void dispose() {
controller.dispose();
controllerHasBeenSet.dispose();
focusNode.dispose();
super.dispose();
}
@override
String? get restorationId => widget.restorationId;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment