3/30/2
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import 'package:SEFER/controller/functions/location_controller.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
@@ -17,7 +18,7 @@ GetBuilder<MapDriverController> driverEndRideBar() {
|
||||
decoration: AppStyle.boxDecoration,
|
||||
height: mapDriverController.remainingTimeTimerRideBegin < 60
|
||||
? mapDriverController.driverEndPage = 160
|
||||
: 100,
|
||||
: 120,
|
||||
width: 240,
|
||||
child: Column(
|
||||
children: [
|
||||
@@ -54,11 +55,14 @@ GetBuilder<MapDriverController> driverEndRideBar() {
|
||||
],
|
||||
),
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||
children: [
|
||||
Text(mapDriverController.recentAngelToMarker
|
||||
.toStringAsFixed(0)),
|
||||
Text(mapDriverController.recentDistanceToDash
|
||||
.toStringAsFixed(0))
|
||||
Text(
|
||||
'Timer is ${mapDriverController.rideTimerFromBegin.toStringAsFixed(0)}'),
|
||||
Text(
|
||||
'Distance is ${mapDriverController.recentDistanceToDash.toStringAsFixed(0)}'),
|
||||
Text(
|
||||
'Price is ${mapDriverController.price.toStringAsFixed(0)}')
|
||||
],
|
||||
),
|
||||
mapDriverController.remainingTimeTimerRideBegin < 60
|
||||
@@ -102,3 +106,25 @@ GetBuilder<MapDriverController> driverEndRideBar() {
|
||||
))
|
||||
: const SizedBox());
|
||||
}
|
||||
|
||||
GetBuilder<MapDriverController> speedCircle() {
|
||||
return GetBuilder<MapDriverController>(
|
||||
builder: (mapDriverController) => mapDriverController.isRideStarted
|
||||
? Positioned(
|
||||
// left: 5,
|
||||
bottom: 25,
|
||||
right: 5,
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
shape: BoxShape.circle,
|
||||
color: AppColor.redColor,
|
||||
border: Border.all(width: 1)),
|
||||
height: 60,
|
||||
width: 60,
|
||||
child: Text(
|
||||
mapDriverController.speed.toStringAsFixed(0),
|
||||
style: AppStyle.number,
|
||||
),
|
||||
))
|
||||
: const SizedBox());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user