10/25/1
This commit is contained in:
@@ -49,7 +49,7 @@ class BarChartWidget extends StatelessWidget {
|
||||
: Column(
|
||||
children: [
|
||||
Text(
|
||||
'Average of Hours of ${AppInfo.appName} is ON for this month'
|
||||
'Average of Hours of ${AppInformation.appName} is ON for this month'
|
||||
.tr,
|
||||
style: AppStyle.title,
|
||||
),
|
||||
|
||||
@@ -5,6 +5,7 @@ import 'package:ride/constant/style.dart';
|
||||
import 'package:ride/constant/table_names.dart';
|
||||
import 'package:ride/controller/home/captin/home_captain_controller.dart';
|
||||
import 'package:ride/controller/home/captin/order_request_controller.dart';
|
||||
import 'package:ride/controller/payment/payment_controller.dart';
|
||||
import 'package:ride/main.dart';
|
||||
import 'package:ride/views/Rate/ride_calculate_driver.dart';
|
||||
import 'package:ride/views/home/Captin/text_scanner.dart';
|
||||
@@ -192,6 +193,14 @@ class HomeCaptain extends StatelessWidget {
|
||||
"Text FlutterMLGoogle",
|
||||
),
|
||||
),
|
||||
TextButton(
|
||||
onPressed: () {
|
||||
PaymentController().makePayment(18, 'JOD');
|
||||
},
|
||||
child: const Text(
|
||||
"Pay 18 dollar",
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
@@ -63,13 +63,13 @@ class PassengerWallet extends StatelessWidget {
|
||||
box.read(BoxName.passengerWalletTotal) == null
|
||||
? Text(
|
||||
'You Dont Have Any amount in'.tr +
|
||||
' ${AppInfo.appName}' +
|
||||
' ${AppInformation.appName}' +
|
||||
'Wallet!'.tr,
|
||||
style: AppStyle.title,
|
||||
)
|
||||
: Text(
|
||||
'You Have'.tr +
|
||||
' ${box.read(BoxName.passengerWalletTotal).toString()} JD in ${AppInfo.appName} Wallet',
|
||||
' ${box.read(BoxName.passengerWalletTotal).toString()} JD in ${AppInformation.appName} Wallet',
|
||||
style: AppStyle.title,
|
||||
),
|
||||
),
|
||||
@@ -357,7 +357,7 @@ class PassengerWallet extends StatelessWidget {
|
||||
"items": [
|
||||
{
|
||||
"name":
|
||||
"${AppInfo.appName} Wallet ",
|
||||
"${AppInformation.appName} Wallet ",
|
||||
"quantity": 1,
|
||||
"price":
|
||||
'${controller.selectedAmount}',
|
||||
@@ -368,7 +368,7 @@ class PassengerWallet extends StatelessWidget {
|
||||
// shipping address is not required though
|
||||
"shipping_address": const {
|
||||
"recipient_name":
|
||||
"${AppInfo.appName} Wallet",
|
||||
"${AppInformation.appName} Wallet",
|
||||
"line1": "Shafa Badran",
|
||||
"line2": "",
|
||||
"city": "Amman",
|
||||
|
||||
Reference in New Issue
Block a user