|
|
|
|
@ -244,7 +244,44 @@ class _MapTrackingPageState extends State<MapTrackingPage> {
|
|
|
|
|
// ).bottomSheetContainer(context, padding: const EdgeInsets.all(16));
|
|
|
|
|
}),
|
|
|
|
|
),
|
|
|
|
|
]
|
|
|
|
|
],
|
|
|
|
|
Positioned(
|
|
|
|
|
top: 70,
|
|
|
|
|
right: 8,
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
children: [
|
|
|
|
|
IconButton(
|
|
|
|
|
icon: const Icon(Icons.add),
|
|
|
|
|
padding: EdgeInsets.zero,
|
|
|
|
|
style: IconButton.styleFrom(
|
|
|
|
|
backgroundColor: AppColor.background(context), // Sets the background color
|
|
|
|
|
foregroundColor: AppColor.icon2Color(context), // Sets the icon color
|
|
|
|
|
),
|
|
|
|
|
visualDensity: VisualDensity.compact,
|
|
|
|
|
tooltip: "Zoom In",
|
|
|
|
|
onPressed: () {
|
|
|
|
|
final zoom = mapController.camera.zoom + 1;
|
|
|
|
|
mapController.move(mapController.camera.center, zoom);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
IconButton(
|
|
|
|
|
icon: const Icon(Icons.remove),
|
|
|
|
|
padding: EdgeInsets.zero,
|
|
|
|
|
visualDensity: VisualDensity.compact,
|
|
|
|
|
style: IconButton.styleFrom(
|
|
|
|
|
backgroundColor: AppColor.background(context), // Sets the background color
|
|
|
|
|
foregroundColor: AppColor.icon2Color(context), // Sets the icon color
|
|
|
|
|
),
|
|
|
|
|
tooltip: "Zoom Out",
|
|
|
|
|
onPressed: () {
|
|
|
|
|
final zoom = mapController.camera.zoom - 1;
|
|
|
|
|
mapController.move(mapController.camera.center, zoom);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|