humazed / google_map_location_picker

🌍 Map location picker component for flutter Based on google_maps_flutter
Apache License 2.0
206 stars 309 forks source link

without supplying 'countries' autoCompleteSearch crashes while country is not mandatory #103

Closed mabady closed 4 years ago

mabady commented 4 years ago

line 150, google_map_location_picker.dart:

int countriesCount = widget.countries.length; => countries cannot be null.

Unhandled Exception: NoSuchMethodError: The getter 'length' was called on null. Receiver: null Tried calling: length

0 Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)

1 LocationPickerState.autoCompleteSearch (package:google_map_location_picker/src/google_map_location_picker.dart:150:43)