BASE: Update Icons & Name Of The App.
This commit is contained in:
@@ -4,7 +4,7 @@ import 'dart:io';
|
||||
|
||||
import 'package:easy_localization/easy_localization.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 MidtransScreen extends StatefulWidget {
|
||||
@@ -48,7 +48,10 @@ class _MidtransScreenState extends State<MidtransScreen> {
|
||||
Get.back(result: false);
|
||||
}
|
||||
} else {
|
||||
String? orderId = Uri.parse(navigation.url).queryParameters['merchant_order_id'];
|
||||
String? orderId =
|
||||
Uri.parse(
|
||||
navigation.url,
|
||||
).queryParameters['merchant_order_id'];
|
||||
if (orderId != null) {
|
||||
Get.back(result: true);
|
||||
} else {
|
||||
@@ -81,7 +84,16 @@ class _MidtransScreenState extends State<MidtransScreen> {
|
||||
child: const Icon(Icons.arrow_back, color: Colors.white),
|
||||
),
|
||||
),
|
||||
body: Stack(alignment: Alignment.center, children: [WebViewWidget(controller: controller), Visibility(visible: isLoading, child: const Center(child: CircularProgressIndicator()))]),
|
||||
body: Stack(
|
||||
alignment: Alignment.center,
|
||||
children: [
|
||||
WebViewWidget(controller: controller),
|
||||
Visibility(
|
||||
visible: isLoading,
|
||||
child: const Center(child: CircularProgressIndicator()),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -96,14 +108,20 @@ class _MidtransScreenState extends State<MidtransScreen> {
|
||||
content: SingleChildScrollView(child: Text("Cancel Payment?".tr())),
|
||||
actions: <Widget>[
|
||||
TextButton(
|
||||
child: Text('Cancel'.tr(), style: const TextStyle(color: Colors.red)),
|
||||
child: Text(
|
||||
'Cancel'.tr(),
|
||||
style: const TextStyle(color: Colors.red),
|
||||
),
|
||||
onPressed: () {
|
||||
Get.back(result: false);
|
||||
Get.back(result: false);
|
||||
},
|
||||
),
|
||||
TextButton(
|
||||
child: Text('Continue'.tr(), style: const TextStyle(color: Colors.green)),
|
||||
child: Text(
|
||||
'Continue'.tr(),
|
||||
style: const TextStyle(color: Colors.green),
|
||||
),
|
||||
onPressed: () {
|
||||
Get.back(result: false);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user