Language Change
This commit is contained in:
@@ -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,
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user