mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-06-14 22:55:12 +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);
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_mapController.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@override
|
||||
void didUpdateWidget(covariant TelemetryLocationMap oldWidget) {
|
||||
super.didUpdateWidget(oldWidget);
|
||||
|
||||
Reference in New Issue
Block a user