WissamALSbenaty / Ultra-Map-Place-Picker

A Flutter package that simplifies location selection on maps, regardless of device type. This package offers seamless location selection for users on both Google Maps-enabled devices and those that are not, such as Huawei devices.
Apache License 2.0
0 stars 0 forks source link

Error when showing Dialog with UltraMap and closing before loading #4

Open Abdulrahmanmarzooq opened 1 day ago

Abdulrahmanmarzooq commented 1 day ago

Hi,

I have encountered an error related to this package, basically, putting this in a bottomSheetModal works fine, but if the picker is not loaded fully and a user closes the dialog, it crashes the entire app and it becomes unusable with the below error repeating with any click.

E/flutter (14477): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: 'package:flutter/src/widgets/navigator.dart': Failed assertion: line 5350 pos 12: '!_debugLocked': is not true.
E/flutter (14477): #0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:50:61)
E/flutter (14477): #1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:40:5)
E/flutter (14477): #2      NavigatorState.pop (package:flutter/src/widgets/navigator.dart:5350:12)
E/flutter (14477): #3      NavigatorState.maybePop (package:flutter/src/widgets/navigator.dart:5316:9)
E/flutter (14477): <asynchronous suspension>
WissamALSbenaty commented 2 hours ago

Hi @Abdulrahmanmarzooq

Sorry for that

Could you please provide a code snippet ? Thanks