fixing android build

This commit is contained in:
Prince
2026-06-14 13:09:14 +02:00
parent 7dc48e06e9
commit 5014b679f5
18 changed files with 91 additions and 11 deletions

View File

@@ -3,7 +3,7 @@ import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:go_router/go_router.dart';
import 'package:qpay/models/responsive_policy.dart';
import 'package:qpay/screens/gateway/gateway_controller.dart';
import 'package:web/web.dart' as web;
import 'package:qpay/browser.dart';
class GatewayWebScreen extends StatefulWidget {
const GatewayWebScreen({super.key});
@@ -50,7 +50,7 @@ class _GatewayWebScreenState extends State<GatewayWebScreen> {
final transactionId =
controller.transactionController.model.confirmationData['id'];
if (transactionId != null) {
web.window.localStorage.setItem(
Browser.localStorage.setItem(
'pendingTransactionId',
transactionId.toString(),
);
@@ -60,7 +60,7 @@ class _GatewayWebScreenState extends State<GatewayWebScreen> {
// After payment, the gateway will redirect back to this app's host.
// index.html then reads the saved transaction ID and navigates to
// /poll/:id so the app can immediately start polling for the result.
web.window.location.href = url;
Browser.location.href = url;
}
@override