Open Tpow99 opened 1 year ago
I am here for the same request. if you edit the package you can get the back button, but when you update the package it is lost so I wish if this was provided as boolean option.
Below line will decide on back button
I am here for the same request. Kindly have a look at it, users are stuck on the location_picker screen and there's no way to go back on iOS. Thanks.
I am here for the same request. if you edit the package you can get the back button, but when you update the package it is lost so I wish if this was provided as boolean option.
Below line will decide on back button
Working, thanks!
Maybe some of you still wondering how to implement Back Button
. Above answer is still not obvious how it should be implemented. Below are the path you should follow to get it.
Note: one of the bad things is whenever the pull request get updated, will be immediately reflected in you application so you might create fork it and modify the changes and refer to your repo.
Refer to github repo instead of pub.dev in your pubspec.yml
file
place_picker:
git:
url: https://github.com/Lzyct/locationpicker.git
# ref: branch_name # if branch not the master
# rev: commit_hash # if you want to get specific commit
In your code
LocationResult? result = await Navigator.of(context).push(MaterialPageRoute(
builder: (context) => PlacePicker(
"API_KEY",
// important to be added
appBarOptions: AppBarOptions(showBackButton: true),
),
),
);
Hey! Super minor and hopefully trivial request, but a back or cancel button would be amazing!