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

@@ -1,6 +1,7 @@
import 'dart:async';
import 'package:customer/constant/constant.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:webview_flutter/webview_flutter.dart';
@@ -57,7 +58,7 @@ class _MercadoPagoScreenState extends State<MercadoPagoScreen> {
},
child: Scaffold(
appBar: AppBar(
title: Text("Payment".tr),
title: Text("Payment".tr()),
centerTitle: false,
leading: GestureDetector(
onTap: () {
@@ -77,18 +78,18 @@ class _MercadoPagoScreenState extends State<MercadoPagoScreen> {
barrierDismissible: true, // user must tap button!
builder: (BuildContext context) {
return AlertDialog(
title: Text('Cancel Payment'.tr),
content: SingleChildScrollView(child: Text("Cancel Payment?".tr)),
title: Text('Cancel Payment'.tr()),
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: () {
Navigator.of(context).pop();
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: () {
Navigator.of(context).pop();
},