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
d4f37fb5
Commit
d4f37fb5
authored
1 year ago
by
Sara Savanovic Djordjevic
Browse files
Options
Downloads
Patches
Plain Diff
add: box on marker press
parent
111587f2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/lib/pages/consts.dart
+1
-0
1 addition, 0 deletions
app/lib/pages/consts.dart
app/lib/pages/default_page.dart
+19
-11
19 additions, 11 deletions
app/lib/pages/default_page.dart
app/lib/pages/widgets/map_widget.dart
+35
-0
35 additions, 0 deletions
app/lib/pages/widgets/map_widget.dart
with
55 additions
and
11 deletions
app/lib/pages/consts.dart
+
1
−
0
View file @
d4f37fb5
...
...
@@ -24,6 +24,7 @@ final chartTextStyle = GoogleFonts.dmSans(fontSize: 14, color: textColor);
// Colors
const
darkBlue
=
Color
(
0xFF00B4D8
);
const
darkestBlue
=
Color
(
0xFF03045E
);
const
lightBlue
=
Color
(
0xFFCAF0F8
);
const
superLightBlue
=
Color
(
0xFFCAF0F8
);
const
barBlue
=
Color
(
0xFF0077B6
);
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app/lib/pages/default_page.dart
+
19
−
11
View file @
d4f37fb5
...
...
@@ -73,18 +73,26 @@ class _DefaultPageState extends State<DefaultPage> {
@override
Widget
build
(
BuildContext
context
)
{
return
Scaffold
(
backgroundColor:
darkBlue
,
appBar:
AppBar
(
title:
Text
(
'IceMap'
,
style:
appTitleStyle
,
return
MaterialApp
(
home:
Container
(
decoration:
const
BoxDecoration
(
gradient:
LinearGradient
(
begin:
Alignment
.
topCenter
,
end:
Alignment
.
bottomCenter
,
colors:
[
darkBlue
,
darkestBlue
],
),
),
child:
Scaffold
(
backgroundColor:
Colors
.
transparent
,
appBar:
AppBar
(
title:
Text
(
'IceMap'
),
),
body:
ListView
(
children:
[
MapContainerWidget
(
markerList:
markerList
),
],
),
),
),
body:
ListView
(
children:
[
MapContainerWidget
(
markerList:
markerList
),
],
),
);
}
...
...
This diff is collapsed.
Click to expand it.
app/lib/pages/widgets/map_widget.dart
+
35
−
0
View file @
d4f37fb5
...
...
@@ -80,6 +80,41 @@ class _MapContainerWidgetState extends State<MapContainerWidget> {
);
})
.
toList
(),
),
if
(
selectedMarker
!=
null
)
// Quick chart on marker press
Positioned
(
bottom:
10
,
right:
10
,
child:
ClipRRect
(
borderRadius:
BorderRadius
.
circular
(
10
),
child:
Container
(
width:
(
screenWidth
*
boxWidth
)
/
2.3
,
height:
(
screenWidth
*
boxWidth
)
/
2.3
,
color:
darkBlue
,
child:
Stack
(
children:
[
Center
(
child:
Text
(
'Placeholder'
,
style:
textStyle
,
),
),
Positioned
(
top:
5
,
right:
5
,
child:
GestureDetector
(
onTap:
()
{
setState
(()
{
selectedMarker
=
null
;
// Clear the selected marker
});
},
child:
const
Icon
(
Icons
.
close
),
),
),
],
),
),
),
),
],
),
),
...
...
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