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

update: almost fixed lake swap

parent 06fa41eb
No related branches found
No related tags found
No related merge requests found
......@@ -62,14 +62,15 @@ class _DefaultPageState extends State<DefaultPage> {
context: context,
delegate: CustomSearchDelegate((String result) {
// Make request only if the selected lake is different from the current selected lake
//if (result != selectedLake) {
Future.microtask(() async { // Reinitialise state with new lake data
setState(() {
selectedLake = result;
});
await initialiseState(false);
setState(() {
selectedLake = result;
});
});
//}
}),
);
},
......
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