OTP added to daily limit #2
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user