This commit is contained in:
Hamza-Ayed
2023-12-10 00:01:36 +03:00
parent db3123320b
commit ba90f96e77
24 changed files with 465 additions and 184 deletions

View File

@@ -58,14 +58,12 @@ class OrderHistory extends StatelessWidget {
onTap: () {
String mapUrl =
'https://www.google.com/maps/dir/${rides['start_location']}/${rides['end_location']}/';
print(mapUrl);
// print(mapUrl);
launchUrl1(mapUrl);
},
child: Column(
children: [
Text(rides['start_location']),
Text(rides['end_location']),
],
child: Text(
'Click here to Show it in Map',
style: AppStyle.title,
),
),
Column(
@@ -81,12 +79,13 @@ class OrderHistory extends StatelessWidget {
Text(
rides['status'],
style: rides['status'] != 'Canceled'
? AppStyle.subtitle
? AppStyle.subtitle.copyWith(
color: AppColor.greenColor)
: AppStyle.subtitle
.copyWith(color: AppColor.redColor),
),
Text(
rides['price'],
'Price is ${rides['price']}',
style: AppStyle.subtitle,
),
],

View File

@@ -20,11 +20,6 @@ class PassengerProfilePage extends StatelessWidget {
Get.put(ProfileController());
return MyScafolld(
isleading: true,
action: MyElevatedButton(
title: 'Delete My Account'.tr,
onPressed: () {
LogOut().deleteMyAccount(box.read(BoxName.passengerID).toString());
}),
title: 'My Profile'.tr,
body: [
GetBuilder<ProfileController>(
@@ -184,6 +179,7 @@ class PassengerProfilePage extends StatelessWidget {
controller.prfoileData['sosPhone']);
},
),
// const Spacer(),
],
),
),
@@ -191,13 +187,24 @@ class PassengerProfilePage extends StatelessWidget {
)),
Positioned(
left: 70,
bottom: 5,
bottom: 240,
right: 70,
child: MyElevatedButton(
title: 'Sign Out'.tr,
onPressed: () {
LogOut().logOut();
}),
),
Positioned(
left: 70,
bottom: 140,
right: 70,
child: MyElevatedButton(
title: 'Delete My Account'.tr,
onPressed: () {
LogOut()
.deleteMyAccount(box.read(BoxName.passengerID).toString());
}),
)
],
);