From aef82237ac7591b77e7ebbfe4aca8dcdaeada791 Mon Sep 17 00:00:00 2001 From: asif Date: Fri, 5 Dec 2025 15:59:59 +0530 Subject: [PATCH] OTP added to daily limit #2 --- lib/features/dashboard/screens/dashboard_screen.dart | 2 +- lib/features/profile/change_limit_otp_screen.dart | 5 +++-- lib/features/profile/profile_screen.dart | 3 +-- lib/features/service/screens/atm_locator_screen.dart | 6 ++++-- lib/features/service/screens/branch_locator_screen.dart | 4 +++- lib/features/service/screens/faqs_screen.dart | 2 +- lib/features/service/screens/service_screen.dart | 2 +- lib/l10n/app_en.arb | 6 ++++-- lib/l10n/app_hi.arb | 4 +++- 9 files changed, 21 insertions(+), 13 deletions(-) diff --git a/lib/features/dashboard/screens/dashboard_screen.dart b/lib/features/dashboard/screens/dashboard_screen.dart index 5bb5c90..9871065 100644 --- a/lib/features/dashboard/screens/dashboard_screen.dart +++ b/lib/features/dashboard/screens/dashboard_screen.dart @@ -625,7 +625,7 @@ class _DashboardScreenState extends State selectedIndex: selectedAccountIndex, ))); }), - _buildQuickLink(Icons.location_pin, "Branch Locator", + _buildQuickLink(Icons.location_pin, AppLocalizations.of(context).branchlocator, () { Navigator.push( context, diff --git a/lib/features/profile/change_limit_otp_screen.dart b/lib/features/profile/change_limit_otp_screen.dart index e416946..50e4c66 100644 --- a/lib/features/profile/change_limit_otp_screen.dart +++ b/lib/features/profile/change_limit_otp_screen.dart @@ -46,8 +46,9 @@ class _ChangeLimitOTPScreenState extends State { ); ScaffoldMessenger.of(context).showSnackBar( - SnackBar( - content: Text(AppLocalizations.of(context).setLimit)), + const SnackBar( + content: Text("Limit has been Changed"), + ) ); // Navigate back to profile or login diff --git a/lib/features/profile/profile_screen.dart b/lib/features/profile/profile_screen.dart index f90980d..7ac550b 100644 --- a/lib/features/profile/profile_screen.dart +++ b/lib/features/profile/profile_screen.dart @@ -7,7 +7,6 @@ import 'package:kmobile/features/profile/logout_dialog.dart'; import 'package:kmobile/features/profile/security_settings_screen.dart'; import 'package:kmobile/security/secure_storage.dart'; import 'package:local_auth/local_auth.dart'; -import 'package:package_info_plus/package_info_plus.dart'; import 'package:shared_preferences/shared_preferences.dart'; import 'package:material_symbols_icons/material_symbols_icons.dart'; import '../../di/injection.dart'; @@ -274,7 +273,7 @@ class _ProfileScreenState extends State { context, MaterialPageRoute( builder: (context) => - DailyLimitScreen(mobileNumber: "918981274001"), + DailyLimitScreen(mobileNumber: widget.mobileNumber), ), ); }, diff --git a/lib/features/service/screens/atm_locator_screen.dart b/lib/features/service/screens/atm_locator_screen.dart index f52cf2f..db72734 100644 --- a/lib/features/service/screens/atm_locator_screen.dart +++ b/lib/features/service/screens/atm_locator_screen.dart @@ -1,7 +1,9 @@ import 'package:flutter/material.dart'; import 'package:kmobile/api/services/branch_service.dart'; // Added: Import BranchService for Atm model and API calls import 'package:kmobile/di/injection.dart'; // Added: Import for dependency injection (getIt) -import 'package:shimmer/shimmer.dart'; // Added: Import for shimmer loading effect +import 'package:shimmer/shimmer.dart'; + +import '../../../l10n/app_localizations.dart'; // Added: Import for shimmer loading effect // Removed: The local 'Location' class is no longer needed as we use the 'Atm' model from branch_service.dart @@ -60,7 +62,7 @@ class _ATMLocatorScreenState extends State { Widget build(BuildContext context) { return Scaffold( appBar: AppBar( - title: const Text("ATM Locator"), // Title for the app bar + title: Text(AppLocalizations.of(context).atmlocator), // Title for the app bar ), body: Stack( children: [ diff --git a/lib/features/service/screens/branch_locator_screen.dart b/lib/features/service/screens/branch_locator_screen.dart index 9f0483a..5decdc4 100644 --- a/lib/features/service/screens/branch_locator_screen.dart +++ b/lib/features/service/screens/branch_locator_screen.dart @@ -6,6 +6,8 @@ import 'package:kmobile/di/injection.dart'; import 'package:shimmer/shimmer.dart'; import 'package:kmobile/features/service/screens/branch_details_screen.dart'; +import '../../../l10n/app_localizations.dart'; + class BranchLocatorScreen extends StatefulWidget { const BranchLocatorScreen({super.key}); @@ -54,7 +56,7 @@ class _BranchLocatorScreenState extends State { return Scaffold( appBar: AppBar( title: Text( - "Branch Locator", + AppLocalizations.of(context).branchlocator, ), ), body: Stack( diff --git a/lib/features/service/screens/faqs_screen.dart b/lib/features/service/screens/faqs_screen.dart index a2c9d8c..cd8da78 100644 --- a/lib/features/service/screens/faqs_screen.dart +++ b/lib/features/service/screens/faqs_screen.dart @@ -50,7 +50,7 @@ class _FaqsScreenState extends State { Widget build(BuildContext context) { return Scaffold( appBar: AppBar( - title: const Text("Frequently Asked Questions"), + title: Text(AppLocalizations.of(context).faq), ), body: Stack( children: [ diff --git a/lib/features/service/screens/service_screen.dart b/lib/features/service/screens/service_screen.dart index cc1dfd2..f0b2924 100644 --- a/lib/features/service/screens/service_screen.dart +++ b/lib/features/service/screens/service_screen.dart @@ -61,7 +61,7 @@ class _ServiceScreen extends State { Expanded( child: ServiceManagementTile( icon: Symbols.location_pin, - label: "ATM Locator", + label: AppLocalizations.of(context).atmlocator, onTap: () { Navigator.push( context, diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 7310308..bc471c8 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -323,7 +323,7 @@ "details": "Details", "remarks": "Remarks (Optional)", "kccbMobile": "KCCB Mobile", - "faq": "Frequently Asked Questions(FAQs)", + "faq": "Frequently Asked Questions", "branches": "Branches", "atms": "ATMs", "dailylimit": "Daily Transaction Limit", @@ -414,5 +414,7 @@ "ftoutsidesubtitle": "Transfer funds to your saved beneficiaries in any other bank across India", "personaldetails": "Personal Details", "kycdetails": "KYC Details", -"viewall": "View All" +"viewall": "View All", +"branchlocator": "Branch Locator", +"atmlocator": "ATM Locator" } diff --git a/lib/l10n/app_hi.arb b/lib/l10n/app_hi.arb index f2e360f..4525199 100644 --- a/lib/l10n/app_hi.arb +++ b/lib/l10n/app_hi.arb @@ -415,5 +415,7 @@ "ftoutsidesubtitle": "भारत भर में किसी भी अन्य बैंक में अपने सहेजे गए लाभार्थियों को धनराशि हस्तांतरित करें", "personaldetails": "व्यक्तिगत विवरण", "kycdetails": "केवाईसी विवरण", -"viewall": "सभी देखें" +"viewall": "सभी देखें", +"branchlocator": "शाखा लोकेटर", +"atmlocator": "एटीएम लोकेटर" }