I am getting this error once in a while when I am closing a screen that has the Google Maps widget in web.
Error: Bad state: Cannot add new events after calling close
at Object.throw_ [as throw] (http://localhost:46385/dart_sdk.js:5080:11)
at _AsyncBroadcastStreamController.new.add (http://localhost:46385/dart_sdk.js:34435:44)
at http://localhost:46385/packages/google_maps_flutter_web/src/types.dart.lib.js:572:33
at _RootZone.runUnaryGuarded (http://localhost:46385/dart_sdk.js:40448:11)
at [_sendData] (http://localhost:46385/dart_sdk.js:33985:22)
at _DelayedData.new.perform (http://localhost:46385/dart_sdk.js:37447:28)
at _StreamImplEvents.new.handleNext (http://localhost:46385/dart_sdk.js:37557:15)
at async._AsyncCallbackEntry.new.callback (http://localhost:46385/dart_sdk.js:37305:16)
at Object._microtaskLoop (http://localhost:46385/dart_sdk.js:40778:13)
at _startMicrotaskLoop (http://localhost:46385/dart_sdk.js:40784:13)
at http://localhost:46385/dart_sdk.js:36261:9
any ideas?
Initially, I thought it was something to do with my TextEditingControllers
, but after removing them - the issue still persists.
When I am using Get.back()
from GetX the error appears.