-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathwidget.dart
42 lines (40 loc) · 1.17 KB
/
widget.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import 'package:flutter/material.dart';
import 'package:universe/universe.dart';
class WidgetOverlayMap extends StatelessWidget {
const WidgetOverlayMap({super.key});
@override
Widget build(BuildContext context) {
return U.OpenStreetMap(
center: [-6.170039, 106.8241],
zoom: 16,
showLocator: true,
layers: [
U.WidgetOverlay(
bounds: [
[-6.17098, 106.825514],
[-6.167775, 106.822867],
],
child: Container(
padding: const EdgeInsets.symmetric(vertical: 10, horizontal: 8),
decoration: BoxDecoration(
color: Colors.white.withOpacity(0.75),
borderRadius: const BorderRadius.only(
topLeft: Radius.circular(8),
topRight: Radius.circular(4),
bottomLeft: Radius.circular(4),
bottomRight: Radius.circular(8),
),
),
child: const Center(
child: Text(
'Wanna bicycle?',
style: TextStyle(color: Colors.lightBlue),
),
),
),
)
],
onTap: print,
);
}
}