4/3/1
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
|
||||||
import 'package:SEFER/constant/table_names.dart';
|
|
||||||
import 'package:SEFER/controller/home/captin/home_captain_controller.dart';
|
import 'package:SEFER/controller/home/captin/home_captain_controller.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
import 'package:google_maps_flutter/google_maps_flutter.dart';
|
import 'package:google_maps_flutter/google_maps_flutter.dart';
|
||||||
@@ -64,14 +63,13 @@ class LocationController extends GetxController {
|
|||||||
Get.find<LocationController>().myLocation.latitude,
|
Get.find<LocationController>().myLocation.latitude,
|
||||||
Get.find<LocationController>().myLocation.longitude,
|
Get.find<LocationController>().myLocation.longitude,
|
||||||
)));
|
)));
|
||||||
} else {
|
}
|
||||||
Get.find<HomeCaptainController>()
|
Get.find<HomeCaptainController>()
|
||||||
.mapHomeCaptainController
|
.mapHomeCaptainController
|
||||||
.animateCamera(CameraUpdate.newLatLng(LatLng(
|
.animateCamera(CameraUpdate.newLatLng(LatLng(
|
||||||
Get.find<LocationController>().myLocation.latitude,
|
Get.find<LocationController>().myLocation.latitude,
|
||||||
Get.find<LocationController>().myLocation.longitude,
|
Get.find<LocationController>().myLocation.longitude,
|
||||||
)));
|
)));
|
||||||
}
|
|
||||||
|
|
||||||
// if (box.read(BoxName.driverID) != null) {
|
// if (box.read(BoxName.driverID) != null) {
|
||||||
await CRUD()
|
await CRUD()
|
||||||
|
|||||||
@@ -828,7 +828,7 @@ class MapDriverController extends GetxController {
|
|||||||
late Duration durationToAdd;
|
late Duration durationToAdd;
|
||||||
int hours = 0;
|
int hours = 0;
|
||||||
int minutes = 0;
|
int minutes = 0;
|
||||||
late String carType;
|
late String carType = '';
|
||||||
late String kazan;
|
late String kazan;
|
||||||
@override
|
@override
|
||||||
void onInit() async {
|
void onInit() async {
|
||||||
|
|||||||
@@ -119,6 +119,7 @@ class HomeCaptain extends StatelessWidget {
|
|||||||
child: Center(
|
child: Center(
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
@@ -142,7 +143,7 @@ class HomeCaptain extends StatelessWidget {
|
|||||||
color: AppColor.yellowColor,
|
color: AppColor.yellowColor,
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'${' You Have in'.tr} ${homeCaptainController.totalMoneyInSEFER} ${AppInformation.appName} ',
|
'${' You Have in'.tr} ${AppInformation.appName} is ${homeCaptainController.totalMoneyInSEFER} ',
|
||||||
style: AppStyle.title,
|
style: AppStyle.title,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@@ -158,7 +159,19 @@ class HomeCaptain extends StatelessWidget {
|
|||||||
Container(
|
Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
borderRadius: BorderRadius.circular(6),
|
borderRadius: BorderRadius.circular(6),
|
||||||
color: AppColor.greenColor,
|
color: int.parse(Get.find<HomeCaptainController>()
|
||||||
|
.countRideToday) <
|
||||||
|
5
|
||||||
|
? AppColor.accentColor
|
||||||
|
: int.parse(Get.find<HomeCaptainController>()
|
||||||
|
.countRideToday) >
|
||||||
|
5 &&
|
||||||
|
int.parse(Get.find<
|
||||||
|
HomeCaptainController>()
|
||||||
|
.countRideToday) <
|
||||||
|
10
|
||||||
|
? AppColor.yellowColor
|
||||||
|
: AppColor.greenColor,
|
||||||
),
|
),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.symmetric(
|
padding: const EdgeInsets.symmetric(
|
||||||
|
|||||||
Reference in New Issue
Block a user