BASE: Switch From EasyLocalization To GetX Localization.
This commit is contained in:
@@ -3,10 +3,10 @@
|
||||
import 'dart:developer';
|
||||
|
||||
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' hide Trans;
|
||||
import 'package:get/get.dart';
|
||||
import 'package:webview_flutter/webview_flutter.dart';
|
||||
|
||||
class PayFastScreen extends StatefulWidget {
|
||||
@@ -91,10 +91,10 @@ class _PayFastScreenState extends State<PayFastScreen> {
|
||||
builder: (BuildContext context) {
|
||||
return AlertDialog(
|
||||
title: const Text('Cancel Payment'),
|
||||
content: SingleChildScrollView(child: Text("Cancel Payment?".tr())),
|
||||
content: SingleChildScrollView(child: Text("Cancel Payment?".tr)),
|
||||
actions: <Widget>[
|
||||
TextButton(
|
||||
child: Text('Exit'.tr(), style: TextStyle(color: Colors.red)),
|
||||
child: Text('Exit'.tr, style: TextStyle(color: Colors.red)),
|
||||
onPressed: () {
|
||||
Get.back();
|
||||
Get.back(result: false);
|
||||
@@ -102,7 +102,7 @@ class _PayFastScreenState extends State<PayFastScreen> {
|
||||
),
|
||||
TextButton(
|
||||
child: Text(
|
||||
'Continue Payment'.tr(),
|
||||
'Continue Payment'.tr,
|
||||
style: TextStyle(color: Colors.green),
|
||||
),
|
||||
onPressed: () {
|
||||
|
||||
Reference in New Issue
Block a user