BASE: Initialize Localization.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
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';
|
||||
@@ -84,17 +85,17 @@ 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);
|
||||
},
|
||||
),
|
||||
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