12/8/1
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import 'package:SEFER/views/widgets/my_dialog.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
@@ -12,11 +11,8 @@ import '../../../controller/functions/toast.dart';
|
||||
import '../../../controller/home/payment/credit_card_controller.dart';
|
||||
import '../../../controller/payment/payment_controller.dart';
|
||||
import '../../../main.dart';
|
||||
import '../../../models/model/painter_copoun.dart';
|
||||
import '../../../print.dart';
|
||||
import '../../widgets/elevated_btn.dart';
|
||||
import '../../widgets/my_scafold.dart';
|
||||
import '../../widgets/my_textField.dart';
|
||||
import 'passenger_wallet_dialoge.dart';
|
||||
|
||||
class PassengerWallet extends StatelessWidget {
|
||||
@@ -51,33 +47,33 @@ class PassengerWallet extends StatelessWidget {
|
||||
},
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding:
|
||||
const EdgeInsets.symmetric(horizontal: 80, vertical: 10),
|
||||
child: MyElevatedButton(
|
||||
kolor: AppColor.yellowColor,
|
||||
title: 'Bounus gift'.tr,
|
||||
onPressed: () {
|
||||
Get.dialog(
|
||||
AlertDialog(
|
||||
contentPadding: EdgeInsets
|
||||
.zero, // Removes the padding around the content
|
||||
content: SizedBox(
|
||||
width: 300, // Match the width of PromoBanner
|
||||
// height: 250, // Match the height of PromoBanner
|
||||
child: PromoBanner(
|
||||
promoCode: box.read(BoxName.promo),
|
||||
discountPercentage: box.read(BoxName.discount),
|
||||
validity: box.read(BoxName.validity),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
Log.print(
|
||||
'box.read(BoxName.isGiftToken).toString(): ${box.read(BoxName.isGiftToken).toString()}');
|
||||
},
|
||||
),
|
||||
)
|
||||
// Padding(
|
||||
// padding:
|
||||
// const EdgeInsets.symmetric(horizontal: 80, vertical: 10),
|
||||
// child: MyElevatedButton(
|
||||
// kolor: AppColor.yellowColor,
|
||||
// title: 'Bonus gift'.tr,
|
||||
// onPressed: () {
|
||||
// Get.dialog(
|
||||
// AlertDialog(
|
||||
// contentPadding: EdgeInsets
|
||||
// .zero, // Removes the padding around the content
|
||||
// content: SizedBox(
|
||||
// width: 300, // Match the width of PromoBanner
|
||||
// // height: 250, // Match the height of PromoBanner
|
||||
// child: PromoBanner(
|
||||
// promoCode: box.read(BoxName.promo),
|
||||
// discountPercentage: box.read(BoxName.discount),
|
||||
// validity: box.read(BoxName.validity),
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
// );
|
||||
// Log.print(
|
||||
// 'box.read(BoxName.isGiftToken).toString(): ${box.read(BoxName.isGiftToken).toString()}');
|
||||
// },
|
||||
// ),
|
||||
// )
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -98,7 +94,8 @@ class PassengerWallet extends StatelessWidget {
|
||||
MyElevatedButton(
|
||||
title: 'Show Promos to Charge'.tr,
|
||||
onPressed: () {
|
||||
controller.changePromoSheetDialogue();
|
||||
// controller.changePromoSheetDialogue();
|
||||
showPaymentBottomSheet(context);
|
||||
},
|
||||
),
|
||||
const SizedBox(
|
||||
|
||||
Reference in New Issue
Block a user