10/2/1
This commit is contained in:
@@ -9,10 +9,11 @@ import '../widgets/mycircular.dart';
|
||||
|
||||
class PassengerLocationDirection extends StatelessWidget {
|
||||
PassengerLocationDirection({super.key});
|
||||
final LocationController locationController = Get.put(LocationController());
|
||||
// final LocationController locationController = Get.put(LocationController());
|
||||
// final MapDirection mapDirection = Get.find<MapDirection>();
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
Get.put(LocationController());
|
||||
// mapDirection.getMap();//todo get this argument
|
||||
return MyScafolld(
|
||||
title: 'Map'.tr,
|
||||
@@ -22,7 +23,7 @@ class PassengerLocationDirection extends StatelessWidget {
|
||||
child: GetBuilder<LocationController>(
|
||||
builder: (controller) => GoogleMap(
|
||||
initialCameraPosition: CameraPosition(
|
||||
target: locationController.myLocation,
|
||||
target: controller.myLocation,
|
||||
zoom: 15,
|
||||
),
|
||||
)),
|
||||
|
||||
Reference in New Issue
Block a user