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
b9ff0622
Commit
b9ff0622
authored
1 year ago
by
Sara Savanovic Djordjevic
Browse files
Options
Downloads
Patches
Plain Diff
update: text in info widget & add scroll gradient
parent
c2163e40
No related branches found
No related tags found
1 merge request
!20
Clhp map, fix unit tests
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/lib/widgets/info_layer.dart
+66
-38
66 additions, 38 deletions
app/lib/widgets/info_layer.dart
with
66 additions
and
38 deletions
app/lib/widgets/info_layer.dart
+
66
−
38
View file @
b9ff0622
...
@@ -60,46 +60,74 @@ class InfoLayerState extends State<InfoLayer> {
...
@@ -60,46 +60,74 @@ class InfoLayerState extends State<InfoLayer> {
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
return
SingleChildScrollView
(
return
Stack
(
child:
Container
(
children:
[
padding:
const
EdgeInsets
.
all
(
45
),
SingleChildScrollView
(
color:
Colors
.
black
.
withOpacity
(
0.8
),
child:
Container
(
child:
Column
(
padding:
const
EdgeInsets
.
all
(
45
),
mainAxisAlignment:
MainAxisAlignment
.
center
,
// Align contents vertically centered
color:
Colors
.
black
.
withOpacity
(
0.8
),
children:
[
child:
Column
(
Text
(
mainAxisAlignment:
MainAxisAlignment
.
center
,
// Align contents vertically centered
'Color categorization'
,
children:
[
style:
subHeadingStyle
,
Text
(
'Color categorization'
,
style:
subHeadingStyle
,
),
const
SizedBox
(
height:
10
),
Text
(
'Each category shows the likelihood of the ice breaking '
'under the weight of a single person.'
,
style:
regTextStyle
,
textAlign:
TextAlign
.
center
,
),
const
SizedBox
(
height:
30
),
_buildLegend
(),
const
SizedBox
(
height:
30
),
Text
(
'Data accuracy'
,
style:
subHeadingStyle
,
textAlign:
TextAlign
.
center
,
),
const
SizedBox
(
height:
10
),
Text
(
'The higher the accuracy, the more likely it is that the displayed ice thickness'
'is correct. The accuracy depends on'
'which data sources are used to calculate the thickness. '
,
style:
regTextStyle
,
textAlign:
TextAlign
.
center
,
),
const
SizedBox
(
height:
20
),
Text
(
'• 1/4: only API data.
\n
'
'• 2/4: only sensor data.
\n
'
'• 3/4: both API and sensor data.
\n
'
'• 4/4: both API and sensor data, with a discrepancy of <1.0cm'
,
style:
regTextStyle
,
),
],
),
),
const
SizedBox
(
height:
20
),
),
Text
(
),
'Each category shows the likelihood of the ice breaking '
Positioned
(
// Gradient at the bottom of the box
'under the weight of a single person.'
,
bottom:
0
,
style:
regTextStyle
,
left:
0
,
textAlign:
TextAlign
.
center
,
right:
0
,
),
child:
IgnorePointer
(
const
SizedBox
(
height:
30
),
child:
Container
(
_buildLegend
(),
height:
50
,
const
SizedBox
(
height:
30
),
decoration:
BoxDecoration
(
Text
(
gradient:
LinearGradient
(
'Data accuracy'
,
begin:
Alignment
.
topCenter
,
style:
subHeadingStyle
,
end:
Alignment
.
bottomCenter
,
textAlign:
TextAlign
.
center
,
colors:
[
),
Colors
.
black
.
withOpacity
(
0.0
),
const
SizedBox
(
height:
20
),
Colors
.
black
.
withOpacity
(
0.8
),
Text
(
],
'The higher the accuracy, the more likely it is that the displayed ice thickness'
),
'is correct. The accuracy depends on'
),
'which data sources are used to calculate the thickness.
\n\n
'
'- 1/4: only API data.
\n
'
'- 2/4: only sensor data.'
'- 3/4: both API and sensor data.
\n
'
'- 4/4: both API and sensor data, with a discrepancy of <1.0cm'
,
style:
regTextStyle
,
textAlign:
TextAlign
.
center
,
),
),
],
),
),
),
),
],
);
);
}
}
}
}
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