Skip to content
Snippets Groups Projects

Clhp map

Closed Sara Savanovic Djordjevic requested to merge clhp_map into main
2 files
+ 33
0
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -259,6 +259,38 @@ class _MapContainerWidgetState extends State<MapContainerWidget> {
),
),
),
Positioned( // No wifi icon
top: 80,
right: 10,
child: GestureDetector(
onTapDown: (_) {
setState(() {
// Add functionality
});
},
onTapUp: (_) {
setState(() {
// Add functionality
});
},
onTapCancel: () {
setState(() {
// Add functionality
});
},
child: Visibility( // Show icon only when no server connection
visible: !gServerConnection,
child: Container(
padding: const EdgeInsets.all(8),
decoration: isTapped ? const BoxDecoration(
shape: BoxShape.circle,
color: Colors.blue,
) : null,
child: const Icon(Icons.perm_scan_wifi, color: Color(0xFF5B0000)),
),
),
),
),
],
),
),
Loading