Skip to content
Snippets Groups Projects
Commit 97d95fa4 authored by Sara Savanovic Djordjevic's avatar Sara Savanovic Djordjevic
Browse files

fix: working lake swap

parent e0f9cc5f
No related branches found
No related tags found
1 merge request!13Clhp map
......@@ -64,11 +64,12 @@ class _DefaultPageState extends State<DefaultPage> {
delegate: CustomSearchDelegate((String result) {
// Make request only if the selected lake is different from the current selected lake
if (result != selectedLake) {
initialiseState(false);
setState(() {
print("SetState called!");
selectedLake = result;
// NB update lastLake persistent variable
initialiseState(false);
});
}
}),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment