Skip to content
Snippets Groups Projects
Commit 53a8ab44 authored by Sara Savanovic Djordjevic's avatar Sara Savanovic Djordjevic
Browse files

update: arrow icon and transparency

parent 4ff84b82
No related branches found
No related tags found
No related merge requests found
...@@ -80,14 +80,14 @@ class _MapContainerWidgetState extends State<MapContainerWidget> { ...@@ -80,14 +80,14 @@ class _MapContainerWidgetState extends State<MapContainerWidget> {
child: Container( child: Container(
width: (screenWidth * boxWidth) / 2.4, width: (screenWidth * boxWidth) / 2.4,
height: isMinimized ? 20 : (screenWidth * boxWidth) / 2.4, height: isMinimized ? 20 : (screenWidth * boxWidth) / 2.4,
color: darkBlue, color: Colors.blue.withOpacity(0.7),
child: Stack( child: Stack(
children: [ children: [
Visibility( // Content only visible when box is maximized Visibility( // Content only visible when box is maximized
visible: !isMinimized && selectedMarker != null, visible: !isMinimized && selectedMarker != null,
child: Center( child: Center(
child: Padding( child: Padding(
padding: const EdgeInsets.only(right: 14.0, top: 14.0), padding: const EdgeInsets.only(right: 16.0, top: 17.0),
child: SizedBox( child: SizedBox(
width: (screenWidth * boxWidth) / 2.3, width: (screenWidth * boxWidth) / 2.3,
height: (screenWidth * boxWidth) / 2.3, height: (screenWidth * boxWidth) / 2.3,
...@@ -97,7 +97,7 @@ class _MapContainerWidgetState extends State<MapContainerWidget> { ...@@ -97,7 +97,7 @@ class _MapContainerWidgetState extends State<MapContainerWidget> {
), ),
), ),
Positioned( Positioned(
top: isMinimized ? 0 : 5, top: 0,
right: 5, right: 5,
child: GestureDetector( child: GestureDetector(
onTap: () { onTap: () {
...@@ -105,7 +105,7 @@ class _MapContainerWidgetState extends State<MapContainerWidget> { ...@@ -105,7 +105,7 @@ class _MapContainerWidgetState extends State<MapContainerWidget> {
isMinimized = !isMinimized; // Toggle the minimized state isMinimized = !isMinimized; // Toggle the minimized state
}); });
}, },
child: Icon(isMinimized ? Icons.arrow_upward : Icons.arrow_downward), child: Icon(isMinimized ? Icons.arrow_drop_up : Icons.arrow_drop_down),
), ),
), ),
], ],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment