diff --git a/packages/google_maps_flutter/CHANGELOG.md b/packages/google_maps_flutter/CHANGELOG.md index 0fde0f825..f0e5f9ad1 100644 --- a/packages/google_maps_flutter/CHANGELOG.md +++ b/packages/google_maps_flutter/CHANGELOG.md @@ -1,6 +1,7 @@ ## NEXT * Update webview_flutter_lwe to 0.3.3. +* Fix memory alarm and map initialization issues. ## 0.1.8 diff --git a/packages/google_maps_flutter/lib/src/google_maps_controller.dart b/packages/google_maps_flutter/lib/src/google_maps_controller.dart index 213756141..1423fd5a8 100644 --- a/packages/google_maps_flutter/lib/src/google_maps_controller.dart +++ b/packages/google_maps_flutter/lib/src/google_maps_controller.dart @@ -173,10 +173,10 @@ class GoogleMapsController { final String options = _createOptions(); final String command = ''' map = new google.maps.Map(document.getElementById('map'), $options); - map.addListener('bounds_changed', BoundChanged.postMessage); - map.addListener('idle', Idle.postMessage); - map.addListener('click', (event) => Click.postMessage(JSON.stringify(event))); - map.addListener('tilesloaded', Tilesloaded.postMessage); + map.addListener('bounds_changed', (event) => { BoundChanged.postMessage(''); }); + map.addListener('idle', (event) => { Idle.postMessage(''); }); + map.addListener('click', (event) => { Click.postMessage(JSON.stringify(event)); }); + map.addListener('tilesloaded', (evnet) => { Tilesloaded.postMessage(''); }); let longPressTimeout; map.addListener('mousedown', (e) => {