Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PROG2900
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sara Savanovic Djordjevic
PROG2900
Commits
97d95fa4
Commit
97d95fa4
authored
11 months ago
by
Sara Savanovic Djordjevic
Browse files
Options
Downloads
Patches
Plain Diff
fix: working lake swap
parent
e0f9cc5f
No related branches found
No related tags found
1 merge request
!13
Clhp map
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/lib/pages/default_page.dart
+2
-1
2 additions, 1 deletion
app/lib/pages/default_page.dart
with
2 additions
and
1 deletion
app/lib/pages/default_page.dart
+
2
−
1
View file @
97d95fa4
...
@@ -64,11 +64,12 @@ class _DefaultPageState extends State<DefaultPage> {
...
@@ -64,11 +64,12 @@ class _DefaultPageState extends State<DefaultPage> {
delegate:
CustomSearchDelegate
((
String
result
)
{
delegate:
CustomSearchDelegate
((
String
result
)
{
// Make request only if the selected lake is different from the current selected lake
// Make request only if the selected lake is different from the current selected lake
if
(
result
!=
selectedLake
)
{
if
(
result
!=
selectedLake
)
{
initialiseState
(
false
);
setState
(()
{
setState
(()
{
print
(
"SetState called!"
);
print
(
"SetState called!"
);
selectedLake
=
result
;
selectedLake
=
result
;
// NB update lastLake persistent variable
// NB update lastLake persistent variable
initialiseState
(
false
);
});
});
}
}
}),
}),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment