OTP added to daily limit #2
This commit is contained in:
@@ -625,7 +625,7 @@ class _DashboardScreenState extends State<DashboardScreen>
|
||||
selectedIndex: selectedAccountIndex,
|
||||
)));
|
||||
}),
|
||||
_buildQuickLink(Icons.location_pin, "Branch Locator",
|
||||
_buildQuickLink(Icons.location_pin, AppLocalizations.of(context).branchlocator,
|
||||
() {
|
||||
Navigator.push(
|
||||
context,
|
||||
|
||||
@@ -46,8 +46,9 @@ class _ChangeLimitOTPScreenState extends State<ChangeLimitOTPScreen> {
|
||||
);
|
||||
|
||||
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
|
||||
|
||||
@@ -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<ProfileScreen> {
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) =>
|
||||
DailyLimitScreen(mobileNumber: "918981274001"),
|
||||
DailyLimitScreen(mobileNumber: widget.mobileNumber),
|
||||
),
|
||||
);
|
||||
},
|
||||
|
||||
@@ -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<ATMLocatorScreen> {
|
||||
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: [
|
||||
|
||||
@@ -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<BranchLocatorScreen> {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text(
|
||||
"Branch Locator",
|
||||
AppLocalizations.of(context).branchlocator,
|
||||
),
|
||||
),
|
||||
body: Stack(
|
||||
|
||||
@@ -50,7 +50,7 @@ class _FaqsScreenState extends State<FaqsScreen> {
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: const Text("Frequently Asked Questions"),
|
||||
title: Text(AppLocalizations.of(context).faq),
|
||||
),
|
||||
body: Stack(
|
||||
children: [
|
||||
|
||||
@@ -61,7 +61,7 @@ class _ServiceScreen extends State<ServiceScreen> {
|
||||
Expanded(
|
||||
child: ServiceManagementTile(
|
||||
icon: Symbols.location_pin,
|
||||
label: "ATM Locator",
|
||||
label: AppLocalizations.of(context).atmlocator,
|
||||
onTap: () {
|
||||
Navigator.push(
|
||||
context,
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
@@ -415,5 +415,7 @@
|
||||
"ftoutsidesubtitle": "भारत भर में किसी भी अन्य बैंक में अपने सहेजे गए लाभार्थियों को धनराशि हस्तांतरित करें",
|
||||
"personaldetails": "व्यक्तिगत विवरण",
|
||||
"kycdetails": "केवाईसी विवरण",
|
||||
"viewall": "सभी देखें"
|
||||
"viewall": "सभी देखें",
|
||||
"branchlocator": "शाखा लोकेटर",
|
||||
"atmlocator": "एटीएम लोकेटर"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user