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:convert';
import 'dart:developer';
import 'package:customer/payment/xenditModel.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;
@@ -112,18 +113,18 @@ class _XenditScreenState extends State<XenditScreen> {
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(false);
Navigator.of(context).pop(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(false);
},