Compare commits

...

2 Commits

Author SHA1 Message Date
yangjie 9c16889c46 dispose 2024-11-29 18:57:40 +08:00
yangjie 57c0602014 dispose 2024-11-29 18:57:24 +08:00
3 changed files with 3 additions and 3 deletions

View File

@ -90,7 +90,7 @@ class AMapController {
}); });
} }
void disponse() { void dispose() {
_methodChannel.dispose(id: mapId); _methodChannel.dispose(id: mapId);
} }

View File

@ -210,7 +210,7 @@ class _MapState extends State<AMapWidget> {
void dispose() async { void dispose() async {
super.dispose(); super.dispose();
AMapController controller = await _controller.future; AMapController controller = await _controller.future;
controller.disponse(); controller.dispose();
print('dispose AMapWidget with mapId: ${controller.mapId}'); print('dispose AMapWidget with mapId: ${controller.mapId}');
} }

View File

@ -1,6 +1,6 @@
name: amap_map name: amap_map
description: Amap SDK Flutter plugin for integrating AMapSDK in iOS and Android applications. description: Amap SDK Flutter plugin for integrating AMapSDK in iOS and Android applications.
version: 1.0.12 version: 1.0.13
homepage: https://github.com/kuloud/amap_map homepage: https://github.com/kuloud/amap_map
issue_tracker: https://github.com/kuloud/amap_map/issues issue_tracker: https://github.com/kuloud/amap_map/issues
platforms: platforms: