BASE: Update Icons & Name Of The App.
This commit is contained in:
@@ -6,14 +6,18 @@ import 'package:customer/models/payment_model/pay_fast_model.dart';
|
||||
import 'package:easy_localization/easy_localization.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:get/get.dart' hide Trans;
|
||||
import 'package:webview_flutter/webview_flutter.dart';
|
||||
|
||||
class PayFastScreen extends StatefulWidget {
|
||||
final String htmlData;
|
||||
final PayFastModel payFastSettingData;
|
||||
|
||||
const PayFastScreen({super.key, required this.htmlData, required this.payFastSettingData});
|
||||
const PayFastScreen({
|
||||
super.key,
|
||||
required this.htmlData,
|
||||
required this.payFastSettingData,
|
||||
});
|
||||
|
||||
@override
|
||||
State<PayFastScreen> createState() => _PayFastScreenState();
|
||||
@@ -45,9 +49,11 @@ class _PayFastScreenState extends State<PayFastScreen> {
|
||||
}
|
||||
if (navigation.url == widget.payFastSettingData.returnUrl) {
|
||||
Get.back(result: true);
|
||||
} else if (navigation.url == widget.payFastSettingData.notifyUrl) {
|
||||
} else if (navigation.url ==
|
||||
widget.payFastSettingData.notifyUrl) {
|
||||
Get.back(result: false);
|
||||
} else if (navigation.url == widget.payFastSettingData.cancelUrl) {
|
||||
} else if (navigation.url ==
|
||||
widget.payFastSettingData.cancelUrl) {
|
||||
_showMyDialog();
|
||||
}
|
||||
return NavigationDecision.navigate;
|
||||
@@ -95,7 +101,10 @@ class _PayFastScreenState extends State<PayFastScreen> {
|
||||
},
|
||||
),
|
||||
TextButton(
|
||||
child: Text('Continue Payment'.tr(), style: TextStyle(color: Colors.green)),
|
||||
child: Text(
|
||||
'Continue Payment'.tr(),
|
||||
style: TextStyle(color: Colors.green),
|
||||
),
|
||||
onPressed: () {
|
||||
Get.back();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user