This commit is contained in:
Hamza-Ayed
2024-09-14 17:34:18 +03:00
parent 82298e7c62
commit 85ece97855
4 changed files with 30 additions and 26 deletions

View File

@@ -296,7 +296,7 @@ class AppLink {
//////////////service///////////
static String serviceApp = "$server/serviceApp";
static String serviceApp = "$server/serviceapp";
static String getComplaintAllData = "$serviceApp/getComplaintAllData.php";
static String getComplaintAllDataForDriver =
"$serviceApp/getComplaintAllDataForDriver.php";

View File

@@ -918,9 +918,10 @@ class MapDriverController extends GetxController {
size: const Size(30, 30), devicePixelRatio: Get.pixelRatio
// scale: 1.0,
);
BitmapDescriptor.fromAssetImage(config, 'assets/images/car.png',
mipmaps: false)
.then((value) {
BitmapDescriptor.asset(
config,
'assets/images/car.png',
).then((value) {
carIcon = value;
update();
});
@@ -931,9 +932,10 @@ class MapDriverController extends GetxController {
ImageConfiguration config = ImageConfiguration(
size: const Size(30, 30), devicePixelRatio: Get.pixelRatio);
BitmapDescriptor.fromAssetImage(config, 'assets/images/A.png',
mipmaps: false)
.then((value) {
BitmapDescriptor.asset(
config,
'assets/images/A.png',
).then((value) {
startIcon = value;
update();
});
@@ -942,9 +944,10 @@ class MapDriverController extends GetxController {
void addCustomEndIcon() {
ImageConfiguration config = ImageConfiguration(
size: const Size(25, 25), devicePixelRatio: Get.pixelRatio);
BitmapDescriptor.fromAssetImage(config, 'assets/images/b.png',
mipmaps: false)
.then((value) {
BitmapDescriptor.asset(
config,
'assets/images/b.png',
).then((value) {
endIcon = value;
update();
});
@@ -955,9 +958,10 @@ class MapDriverController extends GetxController {
size: const Size(30, 30), devicePixelRatio: Get.pixelRatio
// scale: 1.0,
);
BitmapDescriptor.fromAssetImage(config, 'assets/images/picker.png',
mipmaps: false)
.then((value) {
BitmapDescriptor.asset(
config,
'assets/images/picker.png',
).then((value) {
passengerIcon = value;
update();
});