1/27/2
This commit is contained in:
@@ -15,12 +15,12 @@ GetBuilder<MapDriverController> driverEndRideBar() {
|
||||
right: 5,
|
||||
child: Container(
|
||||
decoration: AppStyle.boxDecoration,
|
||||
height: 100,
|
||||
height: mapDriverController.driverEndPage,
|
||||
width: 200,
|
||||
child: Column(
|
||||
children: [
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
children: [
|
||||
Column(
|
||||
children: [
|
||||
@@ -31,15 +31,6 @@ GetBuilder<MapDriverController> driverEndRideBar() {
|
||||
),
|
||||
],
|
||||
),
|
||||
mapDriverController.remainingTimeTimerRideBegin < 60
|
||||
? MyElevatedButton(
|
||||
title: 'End Ride'.tr,
|
||||
onPressed: () {
|
||||
mapDriverController.finishRideFromDriver();
|
||||
},
|
||||
kolor: AppColor.redColor,
|
||||
)
|
||||
: const SizedBox(),
|
||||
Column(
|
||||
children: [
|
||||
const Icon(Icons.timelapse),
|
||||
@@ -48,8 +39,30 @@ GetBuilder<MapDriverController> driverEndRideBar() {
|
||||
style: AppStyle.title),
|
||||
],
|
||||
),
|
||||
Column(
|
||||
children: [
|
||||
const Icon(Icons.money_sharp),
|
||||
Text(
|
||||
'${mapDriverController.paymentAmount} ${'\$'.tr}',
|
||||
style: AppStyle.title),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
mapDriverController.remainingTimeTimerRideBegin < 60
|
||||
? Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
MyElevatedButton(
|
||||
title: 'End Ride'.tr,
|
||||
onPressed: () {
|
||||
mapDriverController.finishRideFromDriver();
|
||||
},
|
||||
kolor: AppColor.redColor,
|
||||
),
|
||||
],
|
||||
)
|
||||
: const SizedBox(),
|
||||
Stack(
|
||||
children: [
|
||||
LinearProgressIndicator(
|
||||
|
||||
@@ -24,6 +24,7 @@ class GoogleDriverMap extends StatelessWidget {
|
||||
initialCameraPosition: CameraPosition(
|
||||
target: locationController.myLocation,
|
||||
zoom: 15,
|
||||
tilt: 40,
|
||||
),
|
||||
onCameraMove: (position) {
|
||||
locationController.myLocation = position.target;
|
||||
|
||||
Reference in New Issue
Block a user