4/23/4
This commit is contained in:
@@ -388,9 +388,10 @@ class MyTranslation extends Translations {
|
||||
"Password must br at least 6 character.":
|
||||
"كَلِمَة الْمُرُور يَجِب أَنْ تَكُون عَلَى الأَقَلِّ 6 أَحْرُف.",
|
||||
"if you don\'t have account": "إِذَا لَمْ يَكُن لَدَيْك حِسَاب",
|
||||
'Here recorded trips audio': 'قائمة تسجيلات الرحلات الصوتية',
|
||||
"Register as Driver": "التَّسْجِيل كَسَائِق",
|
||||
"Privacy Notice": "إِخْطَار الْخُصُوصِيَّة",
|
||||
"By selecting 'I Agree' below, I have reviewed and agree to the Terms of Use and acknowledge the ":
|
||||
'By selecting "I Agree" below, I have reviewed and agree to the Terms of Use and acknowledge the ':
|
||||
"بِاخْتِيَارِي' أُوَافِق' أَدْنَاه، قُمْت بِمُرَاجَعَة وَالْمُوَافَقَة عَلَى شُرُوط الاِسْتِخْدَام وَالاِعْتِرَاف بِـ",
|
||||
". I am at least 18 years of age.":
|
||||
". أَنَا بَالِغ عُمْرِي عَلَى الأَقَلِّ 18 سَنَة.",
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import 'package:SEFER/constant/box_name.dart';
|
||||
import 'package:SEFER/controller/home/map_passenger_controller.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_rating_bar/flutter_rating_bar.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
import '../../constant/box_name.dart';
|
||||
import '../../constant/colors.dart';
|
||||
import '../../constant/style.dart';
|
||||
import '../../controller/firebase/firbase_messge.dart';
|
||||
@@ -114,7 +114,32 @@ class RateDriverFromPassenger extends StatelessWidget {
|
||||
.isWalletChecked ==
|
||||
true)
|
||||
? const DriverTipWidget()
|
||||
: const SizedBox()
|
||||
: const SizedBox(),
|
||||
Row(
|
||||
mainAxisAlignment:
|
||||
MainAxisAlignment.spaceAround,
|
||||
children: [
|
||||
MyElevatedButton(
|
||||
title: 'No i want'.tr,
|
||||
onPressed: () {
|
||||
box.write(BoxName.tipPercentage, '0');
|
||||
}),
|
||||
Container(
|
||||
decoration: AppStyle.boxDecoration1,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(6),
|
||||
child: Text(
|
||||
(Get.find<MapPassengerController>()
|
||||
.totalPassenger *
|
||||
double.parse(box.read(
|
||||
BoxName.tipPercentage)))
|
||||
.toString(),
|
||||
style: AppStyle.title,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
],
|
||||
),
|
||||
)),
|
||||
|
||||
@@ -10,6 +10,7 @@ import 'package:SEFER/main.dart';
|
||||
import '../../../constant/colors.dart';
|
||||
import '../../../constant/style.dart';
|
||||
import '../../../controller/functions/audio_record1.dart';
|
||||
import '../../../controller/functions/toast.dart';
|
||||
import '../../../controller/home/map_passenger_controller.dart';
|
||||
|
||||
class RideBeginPassenger extends StatelessWidget {
|
||||
@@ -185,6 +186,8 @@ class RideBeginPassenger extends StatelessWidget {
|
||||
? IconButton(
|
||||
onPressed: () async {
|
||||
await audioController.startRecording();
|
||||
Toast.show(context, 'Start Record'.tr,
|
||||
AppColor.greenColor);
|
||||
},
|
||||
icon: const Icon(
|
||||
Icons.play_circle_fill_outlined,
|
||||
@@ -196,6 +199,8 @@ class RideBeginPassenger extends StatelessWidget {
|
||||
: IconButton(
|
||||
onPressed: () async {
|
||||
await audioController.stopRecording();
|
||||
Toast.show(context, 'Record saved'.tr,
|
||||
AppColor.greenColor);
|
||||
},
|
||||
icon: const Icon(
|
||||
Icons.stop_circle,
|
||||
|
||||
Reference in New Issue
Block a user