BASE: Initialize Localization.

This commit is contained in:
2025-12-03 18:21:19 +05:00
parent cf58d069ab
commit b04050384d
141 changed files with 1577 additions and 1419 deletions

View File

@@ -3,6 +3,7 @@
import 'dart:async';
import 'dart:convert';
import 'package:customer/models/payment_model/orange_money.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:http/http.dart' as http;
@@ -107,7 +108,7 @@ class _OrangeMoneyScreenState extends State<OrangeMoneyScreen> {
appBar: AppBar(
backgroundColor: Colors.black,
leading: IconButton(icon: const Icon(Icons.arrow_back, color: Colors.white), onPressed: _showCancelDialog),
title: Text('Orange Money Payment'.tr),
title: Text('Orange Money Payment'.tr()),
),
body: isLoading ? const Center(child: CircularProgressIndicator()) : WebViewWidget(controller: controller),
),
@@ -120,12 +121,12 @@ class _OrangeMoneyScreenState extends State<OrangeMoneyScreen> {
barrierDismissible: true,
builder: (BuildContext context) {
return AlertDialog(
title: Text('Cancel Payment'.tr),
content: Text('Are you sure you want to cancel this payment?'.tr),
title: Text('Cancel Payment'.tr()),
content: Text('Are you sure you want to cancel this payment?'.tr()),
actions: [
TextButton(child: Text('No', style: TextStyle(color: Colors.green)), onPressed: () => Get.back()),
TextButton(
child: Text('Yes'.tr, style: TextStyle(color: Colors.red)),
child: Text('Yes'.tr(), style: TextStyle(color: Colors.red)),
onPressed: () {
timer?.cancel();
Get.back(); // close dialog
@@ -298,14 +299,14 @@ class _OrangeMoneyScreenState extends State<OrangeMoneyScreen> {
// barrierDismissible: true, // user must tap button!
// builder: (BuildContext context) {
// return AlertDialog(
// title: Text('Cancel Payment'.tr),
// title: Text('Cancel Payment'.tr()),
// content: SingleChildScrollView(
// child: Text("cancelPayment?".tr),
// child: Text("cancelPayment?".tr()),
// ),
// actions: <Widget>[
// TextButton(
// child: Text(
// 'Cancel'.tr,
// 'Cancel'.tr(),
// style: const TextStyle(color: Colors.red),
// ),
// onPressed: () {
@@ -315,7 +316,7 @@ class _OrangeMoneyScreenState extends State<OrangeMoneyScreen> {
// ),
// TextButton(
// child: Text(
// 'Continue'.tr,
// 'Continue'.tr(),
// style: const TextStyle(color: Colors.green),
// ),
// onPressed: () {