Localization of yojna schemes done

This commit is contained in:
2026-03-11 18:13:04 +05:30
parent eb81269083
commit 49cac5f469
9 changed files with 303 additions and 161 deletions

View File

@@ -46,9 +46,10 @@ class _APYScreenState extends State<APYScreen> {
@override
Widget build(BuildContext context) {
final l10n = AppLocalizations.of(context);
return Scaffold(
appBar: AppBar(
title: const Text('APY registration'),
title: Text(l10n.apyRegistration),
centerTitle: false,
),
body: SingleChildScrollView(
@@ -61,7 +62,7 @@ class _APYScreenState extends State<APYScreen> {
child: Padding(
padding: const EdgeInsets.all(16.0),
child: Text(
"Atal Pension Yojana (APY) is a periodic contribution-based pension scheme for citizens of India.",
l10n.apyDescription,
style: Theme.of(context).textTheme.titleMedium,
),
),
@@ -77,7 +78,7 @@ class _APYScreenState extends State<APYScreen> {
DropdownButtonFormField<User>(
value: _selectedAccount,
decoration: InputDecoration(
labelText: AppLocalizations.of(context).accountNumber,
labelText: l10n.accountNumber,
border: const OutlineInputBorder(),
contentPadding: const EdgeInsets.symmetric(
vertical: 20, horizontal: 12),
@@ -95,8 +96,7 @@ class _APYScreenState extends State<APYScreen> {
},
validator: (value) {
if (value == null) {
return AppLocalizations.of(context)
.accountNumberRequired;
return l10n.accountNumberRequired;
}
return null;
},