Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PROG2900
Manage
Activity
Members
Labels
Plan
Issues
7
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
fb4571b5
Commit
fb4571b5
authored
11 months ago
by
Sara Savanovic Djordjevic
Browse files
Options
Downloads
Patches
Plain Diff
update: implement funciton from last commit
parent
98f168e8
No related branches found
Branches containing commit
No related tags found
1 merge request
!10
Clhp map
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/lib/server_requests/init_state.dart
+5
-3
5 additions, 3 deletions
app/lib/server_requests/init_state.dart
with
5 additions
and
3 deletions
app/lib/server_requests/init_state.dart
+
5
−
3
View file @
fb4571b5
...
...
@@ -34,19 +34,21 @@ Future<void> initialiseState() async{
relationFuture
=
loadSavedRelation
();
}
initSearchOptions
();
selectedRelation
=
await
relationFuture
;
selectedMarkerList
=
await
markerListFuture
;
}
///
fetchAllLakeName
s fetches a list of all lake names in the system
///
initSearchOption
s fetches a list of all lake names in the system
/// and initialises lakeSearchOptions
Future
<
void
>
fetchAllLakeName
s
()
async
{
Future
<
void
>
initSearchOption
s
()
async
{
try
{
HttpClient
client
=
HttpClient
()
.
.
badCertificateCallback
=
// NB: temporary disable SSL certificate validation
(
X509Certificate
cert
,
String
host
,
int
port
)
=
>
true
;
var
request
=
await
client
.
getUrl
(
Uri
.
parse
(
'
$
{
serverURI
}
/get_lake_names'
));
var
request
=
await
client
.
getUrl
(
Uri
.
parse
(
'
$serverURI
/get_lake_names'
));
var
response
=
await
request
.
close
();
if
(
response
.
statusCode
==
200
)
{
...
...
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