adding i18n to all other pages batch3

This commit is contained in:
Azmat-7860
2026-10-03 12:12:31 +05:30
parent 3fbeb606a8
commit cce6bb2ccb
16 changed files with 2037 additions and 201 deletions
+3 -2
View File
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
import '../database/login_info_storage.dart';
import '../database/user_data_storage.dart';
import '../l10n/app_localizations.dart';
import '../screens/Login Screen/login_screen.dart';
Future<bool> _deleteLoggedInUserData() async {
@@ -27,7 +28,7 @@ void showErrorAlert(BuildContext context, Map<String, dynamic> error) {
barrierDismissible: false,
builder: (context) => AlertDialog(
title: Text(
"Error",
AppLocalizations.of(context)!.error,
textAlign: TextAlign.center,
),
content: Column(
@@ -56,7 +57,7 @@ void showErrorAlert(BuildContext context, Map<String, dynamic> error) {
),
child: ElevatedButton(
onPressed: errorTypes[currentError].onClose,
child: Text('OK'),
child: Text(AppLocalizations.of(context)!.ok),
style: ElevatedButton.styleFrom(
// OLD: primary: Colors.transparent, // removed in Flutter 3.27 - by Azmat
backgroundColor: Colors.transparent, // Flutter 3.27 renamed primary - by Azmat