You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using version map_location_picker: ^1.3.0
after I update the version I am unable to go back in the screen it is struck in the same screen
I have tried using the backbutton widget in code as
MaterialPageRoute(
builder: (context) {
return MapLocationPicker(
popOnNextButtonTaped: true,
hideSuggestionsOnKeyboardHide: true,
apiKey: 'Your Api Key',
currentLatLng: locationBloc.currentPosition,
backButton: BackButton(
onPressed: () => Navigator.maybePop(context),
),
onNext: (GeocodingResult? result) {
if (result != null) {
addressCtrl.text = '${result.formattedAddress}';
latitude = '${result.geometry.location.lat}';
longitude = '${result.geometry.location.lng}';
setState(() {});
}
},
onSuggestionSelected:
(PlacesDetailsResponse? result) {
if (result != null) {
addressCtrl.text =
'${result.result.formattedAddress}';
latitude =
'${result.result.geometry?.location.lat}';
longitude =
'${result.result.geometry?.location.lng}';
setState(() {});
}
},
);
},
),
One more thing when I click on the location button which navigates to the current location
When I am at the same location & try to hit the same screen it is navigated to the settings of my app.
The text was updated successfully, but these errors were encountered:
I am using version map_location_picker: ^1.3.0
after I update the version I am unable to go back in the screen it is struck in the same screen
I have tried using the backbutton widget in code as
MaterialPageRoute(
builder: (context) {
return MapLocationPicker(
popOnNextButtonTaped: true,
hideSuggestionsOnKeyboardHide: true,
apiKey: 'Your Api Key',
currentLatLng: locationBloc.currentPosition,
backButton: BackButton(
onPressed: () => Navigator.maybePop(context),
),
onNext: (GeocodingResult? result) {
if (result != null) {
addressCtrl.text = '${result.formattedAddress}';
latitude = '${result.geometry.location.lat}';
longitude = '${result.geometry.location.lng}';
setState(() {});
}
},
onSuggestionSelected:
(PlacesDetailsResponse? result) {
if (result != null) {
addressCtrl.text =
'${result.result.formattedAddress}';
latitude =
'${result.result.geometry?.location.lat}';
longitude =
'${result.result.geometry?.location.lng}';
setState(() {});
}
},
);
},
),
One more thing when I click on the location button which navigates to the current location
When I am at the same location & try to hit the same screen it is navigated to the settings of my app.
The text was updated successfully, but these errors were encountered: