adding i18n to all other pages

This commit is contained in:
Azmat-7860
2026-10-03 11:22:48 +05:30
parent 47656678e1
commit 3fbeb606a8
22 changed files with 2526 additions and 249 deletions
@@ -3,6 +3,8 @@ import 'package:flutter/material.dart';
// OLD: import 'package:flutter_barcode_scanner/flutter_barcode_scanner.dart'; // removed no namespace AGP8 - by Azmat
import 'package:mobile_scanner/mobile_scanner.dart'; // migrated for AGP8 Java17 - by Azmat
import '../../../l10n/app_localizations.dart';
class qrcodeScreen extends StatefulWidget {
const qrcodeScreen({super.key});
@@ -22,7 +24,8 @@ class _qrcodeScreenState extends State<qrcodeScreen> {
context,
MaterialPageRoute(
builder: (context) => Scaffold(
appBar: AppBar(title: const Text('Scan QR')),
appBar: AppBar(
title: Text(AppLocalizations.of(context)!.scanQR)),
body: MobileScanner(
controller: qrCodeController,
onDetect: (capture) => Navigator.pop(
@@ -47,7 +50,8 @@ class _qrcodeScreenState extends State<qrcodeScreen> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('QR Code')),
appBar: AppBar(
title: Text(AppLocalizations.of(context)!.qrCode)),
body: SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.all(16),
@@ -56,8 +60,8 @@ class _qrcodeScreenState extends State<qrcodeScreen> {
child: Center(
child: Column(
children: [
const Text(
'Scanned QRcode:',
Text(
AppLocalizations.of(context)!.scannedQRCode,
style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
),
const SizedBox(height: 10),
@@ -71,7 +75,8 @@ class _qrcodeScreenState extends State<qrcodeScreen> {
scanQRcode(); // Trigger barcode scanning
},
icon: const Icon(Icons.camera_alt), // Camera icon
label: const Text('Scan QRcode'),
label: Text(
AppLocalizations.of(context)!.scanQRCode),
),
const SizedBox(height: 16),
],