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 have a icon that is on top of a map, Basically it is a location pin icon. I want to show or hide when a button is clicked.
Initially I have set the visibility to hide but then when I click the button it wont show
But nothing happens. The boolean showMapPicker is set to false initially, i believe it has changed to True after clicking on GestureDetector but the state doesn't change.
Do i need to add anything else ? setState(){} or sth? Shouldn't provider package take care of that ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a icon that is on top of a map, Basically it is a location pin icon. I want to show or hide when a button is clicked.
Initially I have set the visibility to hide but then when I click the button it wont show
Here is the code for the widget
This is the code fort provider
This is the button with
GestureDetector
to hide and show the widget
Finally it is the widget itself that i want to show and hide,
But nothing happens. The boolean
showMapPicker
is set to false initially, i believe it has changed toTrue
after clicking onGestureDetector
but the state doesn't change.Do i need to add anything else ?
setState(){}
or sth? Shouldn't provider package take care of that ?Beta Was this translation helpful? Give feedback.
All reactions