perbaikan on possale string 1

This commit is contained in:
2026-04-18 22:45:08 +07:00
parent d912b1f63a
commit b1781625f2
2693 changed files with 366 additions and 6459 deletions

View File

@@ -25,11 +25,15 @@ const String failureUrl = 'order-status?status=failed';
class PaymentScreenState extends State<PaymentScreen> {
late WebViewController controller;
final ImagePicker _imagePicker = ImagePicker();
late bool isSupportedPlatform;
@override
void initState() {
// TODO: implement initState
super.initState();
isSupportedPlatform = Platform.isAndroid || Platform.isIOS;
if (!isSupportedPlatform) return;
paymentUrl = paymentUrl.replaceAll(APIConfig.domain, APIConfig.domain).replaceAll('plan_id', widget.planId).replaceAll('business_id', widget.businessId);
controller = WebViewController()
@@ -72,6 +76,24 @@ class PaymentScreenState extends State<PaymentScreen> {
@override
Widget build(BuildContext context) {
if (!isSupportedPlatform) {
return Scaffold(
appBar: AppBar(
title: Text(lang.S.of(context).paymentGateway),
),
body: Center(
child: Padding(
padding: const EdgeInsets.all(20.0),
child: Text(
'Payment Gateway is not supported on this device. Please use an Android or iOS device to complete the subscription.',
textAlign: TextAlign.center,
style: TextStyle(fontSize: 18),
),
),
),
);
}
return Scaffold(
appBar: AppBar(
title: Text(