Language Change

This commit is contained in:
Nilanjan Chakrabarti
2025-07-10 13:19:31 +05:30
parent 9b439338a9
commit d4de89a91f
22 changed files with 334 additions and 227 deletions

View File

@@ -1,3 +1,5 @@
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:flutter/material.dart';
import 'package:material_symbols_icons/material_symbols_icons.dart';
@@ -8,14 +10,16 @@ class ServiceScreen extends StatefulWidget {
State<ServiceScreen> createState() => _ServiceScreen();
}
class _ServiceScreen extends State<ServiceScreen>{
class _ServiceScreen extends State<ServiceScreen> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
automaticallyImplyLeading: false,
title: const Text('Services', style: TextStyle(color: Colors.black,
fontWeight: FontWeight.w500),),
title: Text(
AppLocalizations.of(context).services,
style: TextStyle(color: Colors.black, fontWeight: FontWeight.w500),
),
centerTitle: false,
actions: [
// IconButton(
@@ -28,61 +32,53 @@ class _ServiceScreen extends State<ServiceScreen>{
padding: const EdgeInsets.only(right: 10.0),
child: InkWell(
borderRadius: BorderRadius.circular(20),
onTap: (){
onTap: () {
// Navigator.push(context, MaterialPageRoute(
// builder: (context) => const CustomerInfoScreen()));
},
child: const CircleAvatar(
backgroundImage: AssetImage('assets/images/avatar.jpg'), // Replace with your image
backgroundImage: AssetImage(
'assets/images/avatar.jpg'), // Replace with your image
radius: 20,
),
),
),
],
),
body: ListView(
children: [
ServiceManagementTile(
icon: Symbols.add,
label: 'Account Opening Request - Deposit',
onTap: () {
},
label: AppLocalizations.of(context).accountOpeningDeposit,
onTap: () {},
),
const Divider(
height: 1,
),
const Divider(height: 1,),
ServiceManagementTile(
icon: Symbols.add,
label: 'Account Opening Request - Loan',
onTap: () {
},
label: AppLocalizations.of(context).accountOpeningLoan,
onTap: () {},
),
const Divider(
height: 1,
),
const Divider(height: 1,),
ServiceManagementTile(
icon: Symbols.captive_portal,
label: 'Quick Links',
onTap: () {
},
label: AppLocalizations.of(context).quickLinks,
onTap: () {},
),
const Divider(
height: 1,
),
const Divider(height: 1,),
ServiceManagementTile(
icon: Symbols.missing_controller,
label: 'Branch Locator',
onTap: () {
},
label: AppLocalizations.of(context).branchLocator,
onTap: () {},
),
const Divider(height: 1,)
const Divider(
height: 1,
)
],
),
);
@@ -110,4 +106,4 @@ class ServiceManagementTile extends StatelessWidget {
onTap: onTap,
);
}
}
}