63 lines
1.8 KiB
Dart
Executable File
63 lines
1.8 KiB
Dart
Executable File
|
|
import 'package:flutter/material.dart';
|
|
import 'package:get/get.dart';
|
|
// import 'package:google_maps_flutter/google_maps_flutter.dart';
|
|
|
|
class LockAddressGooglePage extends StatefulWidget {
|
|
const LockAddressGooglePage({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
State<LockAddressGooglePage> createState() => _LockAddressGooglePageState();
|
|
}
|
|
|
|
class _LockAddressGooglePageState extends State<LockAddressGooglePage> {
|
|
|
|
var deviceFindData = Get.arguments['data'];
|
|
var source;
|
|
var result;
|
|
|
|
// LatLng _kMapCenter;
|
|
// CameraPosition _kInitialPosition;
|
|
|
|
var _markers;
|
|
var setmarkers;
|
|
var restaurantMarker;
|
|
bool isSetupReady = false;
|
|
|
|
String? currentAddress;
|
|
|
|
@override
|
|
void initState() {
|
|
super.initState();
|
|
|
|
// doSetup();
|
|
}
|
|
//
|
|
// doSetup() async {
|
|
// List<Placemark> placemarks = await placemarkFromCoordinates(deviceFindData.latitude, deviceFindData.longitude);
|
|
// Placemark place1 = placemarks[0];
|
|
// currentAddress = "${place1.country} ${place1.administrativeArea} ${place1.locality} ${place1.subLocality} ${place1.name}";
|
|
// // AppLog.log("objectfasdfasdfasdfasdf:${placemarks}fasdfasdf${place1} ${currentAddress}");
|
|
//
|
|
// restaurantMarker = await BitmapDescriptor.fromAssetImage(
|
|
// ImageConfiguration(size: Size(w(27), h(31))), Platform.isIOS ? R.assetsImgsDeviceFindDeviceIcon : R.assetsImgsDeviceFindDeviceAndroidIcon);
|
|
// _markers = [
|
|
// Marker(
|
|
// markerId: MarkerId("marker_2"),
|
|
// infoWindow: InfoWindow(title: currentAddress),
|
|
// icon: restaurantMarker,
|
|
// // position:_kMapCenter,
|
|
// ),
|
|
// ];
|
|
// setmarkers = _markers.toSet();
|
|
// setState(() {
|
|
// isSetupReady = true;
|
|
// });
|
|
// }
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return const Placeholder();
|
|
}
|
|
}
|