57 lines
1.8 KiB
Dart
57 lines
1.8 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:get/get.dart';
|
|
|
|
import '../../../constant/colors.dart';
|
|
import '../../../controller/home/map_page_controller.dart';
|
|
|
|
GetBuilder<MapController> leftMainMenuIcons() {
|
|
return GetBuilder<MapController>(
|
|
builder: (controller) => Positioned(
|
|
top: 85,
|
|
left: 6,
|
|
child: Column(
|
|
children: [
|
|
AnimatedContainer(
|
|
duration: const Duration(microseconds: 200),
|
|
width: controller.widthMapTypeAndTrafic,
|
|
decoration: BoxDecoration(
|
|
border: Border.all(),
|
|
color: AppColor.secondaryColor,
|
|
borderRadius: BorderRadius.circular(15)),
|
|
child: IconButton(
|
|
onPressed: () {
|
|
controller.changeMapType();
|
|
// Toast.show(context, 'This is a toast message!');
|
|
},
|
|
icon: const Icon(
|
|
Icons.satellite_alt,
|
|
size: 29,
|
|
),
|
|
),
|
|
),
|
|
const SizedBox(
|
|
height: 5,
|
|
),
|
|
AnimatedContainer(
|
|
duration: const Duration(microseconds: 200),
|
|
width: controller.widthMapTypeAndTrafic,
|
|
decoration: BoxDecoration(
|
|
color: AppColor.secondaryColor,
|
|
border: Border.all(),
|
|
borderRadius: BorderRadius.circular(15)),
|
|
child: IconButton(
|
|
onPressed: () {
|
|
controller.changeMapTraffic();
|
|
// Toast.show(context, 'This is a toast message!');
|
|
},
|
|
icon: const Icon(
|
|
Icons.streetview_sharp,
|
|
size: 29,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
)),
|
|
);
|
|
}
|