Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Navigation App
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWP Datenverwaltung Navigation 2023
Navigation App
Commits
607b0823
Commit
607b0823
authored
Apr 4, 2023
by
theilen
Browse files
Options
Downloads
Patches
Plain Diff
Fix loading Screen
parent
1cc8488c
Branches
Branches containing commit
No related tags found
1 merge request
!6
final project merge into main
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/main.dart
+13
-8
13 additions, 8 deletions
lib/main.dart
with
13 additions
and
8 deletions
lib/main.dart
+
13
−
8
View file @
607b0823
...
...
@@ -176,6 +176,9 @@ class _MyHomePageState extends State<MyHomePage> {
]);
_isLoading
=
false
;
setState
(()
{
_isLoading
;
});
}
// Add markers for origin/dest coords.
...
...
@@ -256,7 +259,9 @@ class _MyHomePageState extends State<MyHomePage> {
if
(
_data
.
containsKey
(
'error_code'
)
&&
_data
[
'error_code'
]
!=
0
)
{
switch
(
_data
[
'error_code'
])
{
case
1
:
_showMessage
(
'The address is outside the solution space. Please enter an address within Berlin-Brandenburg.'
,
context
);
_showMessage
(
'The address is outside the solution space. Please enter an address within Berlin-Brandenburg.'
,
context
);
return
;
case
2
:
_showMessage
(
'The address could not be found.'
,
context
);
...
...
@@ -267,7 +272,7 @@ class _MyHomePageState extends State<MyHomePage> {
var
coordinates
=
_data
[
'route'
];
int
duration
=
_data
[
'duration'
];
int
distance
=
_data
[
'distance'
];
int
daysAfterToday
=
_data
[
'day_after_today'
];
int
daysAfterToday
=
_data
[
'day
s
_after_today'
];
// Format duration, distance and day
_totalDuration
=
getTotalDuration
(
duration
);
...
...
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