Issue
I want to close MapView dialog when user select the place on map or top on a action Toolbar button but there is no method like show()
that close the map programmatically.
I want something like below code :
mapView.onToolbarAction.listen((id) {
if (id == 1) {
mapView.close();
}
});
Solution
There is a dismiss() method that you can use rather than close().
You can use like this:
mapView.onToolbarAction.listen((id) {
if (id == 1) {
mapView.dismiss();
}
});
Answered By - Dhrumil Shah - dhuma1981
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.