OTP added to daily limit #2
This commit is contained in:
@@ -625,7 +625,7 @@ class _DashboardScreenState extends State<DashboardScreen>
|
|||||||
selectedIndex: selectedAccountIndex,
|
selectedIndex: selectedAccountIndex,
|
||||||
)));
|
)));
|
||||||
}),
|
}),
|
||||||
_buildQuickLink(Icons.location_pin, "Branch Locator",
|
_buildQuickLink(Icons.location_pin, AppLocalizations.of(context).branchlocator,
|
||||||
() {
|
() {
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
context,
|
context,
|
||||||
|
|||||||
@@ -46,8 +46,9 @@ class _ChangeLimitOTPScreenState extends State<ChangeLimitOTPScreen> {
|
|||||||
);
|
);
|
||||||
|
|
||||||
ScaffoldMessenger.of(context).showSnackBar(
|
ScaffoldMessenger.of(context).showSnackBar(
|
||||||
SnackBar(
|
const SnackBar(
|
||||||
content: Text(AppLocalizations.of(context).setLimit)),
|
content: Text("Limit has been Changed"),
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Navigate back to profile or login
|
// 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/features/profile/security_settings_screen.dart';
|
||||||
import 'package:kmobile/security/secure_storage.dart';
|
import 'package:kmobile/security/secure_storage.dart';
|
||||||
import 'package:local_auth/local_auth.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:shared_preferences/shared_preferences.dart';
|
||||||
import 'package:material_symbols_icons/material_symbols_icons.dart';
|
import 'package:material_symbols_icons/material_symbols_icons.dart';
|
||||||
import '../../di/injection.dart';
|
import '../../di/injection.dart';
|
||||||
@@ -274,7 +273,7 @@ class _ProfileScreenState extends State<ProfileScreen> {
|
|||||||
context,
|
context,
|
||||||
MaterialPageRoute(
|
MaterialPageRoute(
|
||||||
builder: (context) =>
|
builder: (context) =>
|
||||||
DailyLimitScreen(mobileNumber: "918981274001"),
|
DailyLimitScreen(mobileNumber: widget.mobileNumber),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
import 'package:flutter/material.dart';
|
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/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: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
|
// 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) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
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(
|
body: Stack(
|
||||||
children: [
|
children: [
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ import 'package:kmobile/di/injection.dart';
|
|||||||
import 'package:shimmer/shimmer.dart';
|
import 'package:shimmer/shimmer.dart';
|
||||||
import 'package:kmobile/features/service/screens/branch_details_screen.dart';
|
import 'package:kmobile/features/service/screens/branch_details_screen.dart';
|
||||||
|
|
||||||
|
import '../../../l10n/app_localizations.dart';
|
||||||
|
|
||||||
class BranchLocatorScreen extends StatefulWidget {
|
class BranchLocatorScreen extends StatefulWidget {
|
||||||
const BranchLocatorScreen({super.key});
|
const BranchLocatorScreen({super.key});
|
||||||
|
|
||||||
@@ -54,7 +56,7 @@ class _BranchLocatorScreenState extends State<BranchLocatorScreen> {
|
|||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: Text(
|
title: Text(
|
||||||
"Branch Locator",
|
AppLocalizations.of(context).branchlocator,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
body: Stack(
|
body: Stack(
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ class _FaqsScreenState extends State<FaqsScreen> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: const Text("Frequently Asked Questions"),
|
title: Text(AppLocalizations.of(context).faq),
|
||||||
),
|
),
|
||||||
body: Stack(
|
body: Stack(
|
||||||
children: [
|
children: [
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ class _ServiceScreen extends State<ServiceScreen> {
|
|||||||
Expanded(
|
Expanded(
|
||||||
child: ServiceManagementTile(
|
child: ServiceManagementTile(
|
||||||
icon: Symbols.location_pin,
|
icon: Symbols.location_pin,
|
||||||
label: "ATM Locator",
|
label: AppLocalizations.of(context).atmlocator,
|
||||||
onTap: () {
|
onTap: () {
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
context,
|
context,
|
||||||
|
|||||||
@@ -323,7 +323,7 @@
|
|||||||
"details": "Details",
|
"details": "Details",
|
||||||
"remarks": "Remarks (Optional)",
|
"remarks": "Remarks (Optional)",
|
||||||
"kccbMobile": "KCCB Mobile",
|
"kccbMobile": "KCCB Mobile",
|
||||||
"faq": "Frequently Asked Questions(FAQs)",
|
"faq": "Frequently Asked Questions",
|
||||||
"branches": "Branches",
|
"branches": "Branches",
|
||||||
"atms": "ATMs",
|
"atms": "ATMs",
|
||||||
"dailylimit": "Daily Transaction Limit",
|
"dailylimit": "Daily Transaction Limit",
|
||||||
@@ -414,5 +414,7 @@
|
|||||||
"ftoutsidesubtitle": "Transfer funds to your saved beneficiaries in any other bank across India",
|
"ftoutsidesubtitle": "Transfer funds to your saved beneficiaries in any other bank across India",
|
||||||
"personaldetails": "Personal Details",
|
"personaldetails": "Personal Details",
|
||||||
"kycdetails": "KYC Details",
|
"kycdetails": "KYC Details",
|
||||||
"viewall": "View All"
|
"viewall": "View All",
|
||||||
|
"branchlocator": "Branch Locator",
|
||||||
|
"atmlocator": "ATM Locator"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -415,5 +415,7 @@
|
|||||||
"ftoutsidesubtitle": "भारत भर में किसी भी अन्य बैंक में अपने सहेजे गए लाभार्थियों को धनराशि हस्तांतरित करें",
|
"ftoutsidesubtitle": "भारत भर में किसी भी अन्य बैंक में अपने सहेजे गए लाभार्थियों को धनराशि हस्तांतरित करें",
|
||||||
"personaldetails": "व्यक्तिगत विवरण",
|
"personaldetails": "व्यक्तिगत विवरण",
|
||||||
"kycdetails": "केवाईसी विवरण",
|
"kycdetails": "केवाईसी विवरण",
|
||||||
"viewall": "सभी देखें"
|
"viewall": "सभी देखें",
|
||||||
|
"branchlocator": "शाखा लोकेटर",
|
||||||
|
"atmlocator": "एटीएम लोकेटर"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user