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
ad3204e1
Commit
ad3204e1
authored
1 year ago
by
Sara Savanovic Djordjevic
Browse files
Options
Downloads
Patches
Plain Diff
update: collapsable quick view box
parent
48339c4b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/lib/pages/consts.dart
+1
-0
1 addition, 0 deletions
app/lib/pages/consts.dart
app/lib/pages/widgets/map_widget.dart
+31
-30
31 additions, 30 deletions
app/lib/pages/widgets/map_widget.dart
with
32 additions
and
30 deletions
app/lib/pages/consts.dart
+
1
−
0
View file @
ad3204e1
...
...
@@ -23,6 +23,7 @@ final regTextStyle = GoogleFonts.dmSans(fontSize: 20, color: textColor);
final
chartTextStyle
=
GoogleFonts
.
dmSans
(
fontSize:
14
,
color:
textColor
);
// Colors
const
mediumBlue
=
Color
(
0xFF015E8F
);
const
darkBlue
=
Color
(
0xFF00B4D8
);
const
darkestBlue
=
Color
(
0xFF03045E
);
const
lightBlue
=
Color
(
0xFFCAF0F8
);
...
...
This diff is collapsed.
Click to expand it.
app/lib/pages/widgets/map_widget.dart
+
31
−
30
View file @
ad3204e1
...
...
@@ -17,6 +17,7 @@ class MapContainerWidget extends StatefulWidget {
class
_MapContainerWidgetState
extends
State
<
MapContainerWidget
>
{
MarkerTemplate
?
selectedMarker
;
bool
isMinimized
=
true
;
// Quick view box state tacker
@override
Widget
build
(
BuildContext
context
)
{
...
...
@@ -77,41 +78,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:
regTextStyle
,
),
Positioned
(
bottom:
10
,
right:
10
,
child:
ClipRRect
(
borderRadius:
BorderRadius
.
circular
(
10
),
child:
Container
(
width:
(
screenWidth
*
boxWidth
)
/
2.3
,
height:
isMinimized
?
20
:
(
screenWidth
*
boxWidth
)
/
2.3
,
color:
darkBlue
,
child:
Stack
(
children:
[
Center
(
child:
Text
(
'Placeholder'
,
style:
regTextStyle
,
),
Positioned
(
top:
5
,
right:
5
,
child:
GestureDetector
(
onTap:
()
{
setState
(()
{
selectedMarker
=
null
;
});
},
child:
const
Icon
(
Icons
.
close
),
),
),
Positioned
(
top:
isMinimized
?
0
:
5
,
left:
5
,
child:
GestureDetector
(
onTap:
()
{
setState
(()
{
isMinimized
=
!
isMinimized
;
// Toggle the minimized state
print
(
"IsMinimized?:
$isMinimized
"
);
});
},
child:
Icon
(
isMinimized
?
Icons
.
arrow_upward
:
Icons
.
arrow_downward
),
),
]
,
)
,
)
,
]
,
),
),
),
),
],
),
),
...
...
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