adding i18n to all other pages batch3
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user