mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-24 09:39:03 +10:00
Fix «Dispose the telemetry map controller on widget teardown»
This commit is contained in:
@@ -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