12/9/1
This commit is contained in:
@@ -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,
|
||||
),
|
||||
],
|
||||
|
||||
@@ -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());
|
||||
}),
|
||||
)
|
||||
],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user