Fix «Dispose the telemetry map controller on widget teardown»
This commit is contained in:
1 parent
d68f755677
commit
6a7dd981a2
1 file changed
+6
@@ -41,6 +41,12 @@ class _TelemetryLocationMapState extends State<TelemetryLocationMap> {
|
|||||||
|
|
||||||
LatLng get _position => LatLng(widget.latitude, widget.longitude);
|
LatLng get _position => LatLng(widget.latitude, widget.longitude);
|
||||||
|
|
||||||
|
@override
|
||||||
|
void dispose() {
|
||||||
|
_mapController.dispose();
|
||||||
|
super.dispose();
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void didUpdateWidget(covariant TelemetryLocationMap oldWidget) {
|
void didUpdateWidget(covariant TelemetryLocationMap oldWidget) {
|
||||||
super.didUpdateWidget(oldWidget);
|
super.didUpdateWidget(oldWidget);
|
||||||
|
|||||||
Reference in new issue
Block a user