FQAs and Quick Links Screens created
This commit is contained in:
@@ -65,9 +65,9 @@ Dio _createDioClient() {
|
||||
final dio = Dio(
|
||||
BaseOptions(
|
||||
baseUrl:
|
||||
'http://lb-test-mobile-banking-app-192209417.ap-south-1.elb.amazonaws.com:8080', //test
|
||||
//'http://lb-test-mobile-banking-app-192209417.ap-south-1.elb.amazonaws.com:8080', //test
|
||||
//'http://lb-kccb-mobile-banking-app-848675342.ap-south-1.elb.amazonaws.com', //prod
|
||||
//'https://kccbmbnk.net',
|
||||
'https://kccbmbnk.net',
|
||||
connectTimeout: const Duration(seconds: 60),
|
||||
receiveTimeout: const Duration(seconds: 60),
|
||||
headers: {
|
||||
|
||||
47
lib/features/service/screens/faqs_screen.dart
Normal file
47
lib/features/service/screens/faqs_screen.dart
Normal file
@@ -0,0 +1,47 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:kmobile/l10n/app_localizations.dart';
|
||||
|
||||
class FaqsScreen extends StatefulWidget {
|
||||
const FaqsScreen({super.key});
|
||||
|
||||
@override
|
||||
State<FaqsScreen> createState() => _FaqsScreenState();
|
||||
}
|
||||
|
||||
class _FaqsScreenState extends State<FaqsScreen> {
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_getFaqs();
|
||||
}
|
||||
|
||||
// A placeholder for your future API call
|
||||
Future<void> _getFaqs() async {
|
||||
// TODO: Implement API call to fetch FAQs data
|
||||
// For now, simulating a network call with a delay
|
||||
await Future.delayed(const Duration(seconds: 1));
|
||||
// In a real implementation, you would process the API response here
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Row(
|
||||
children: [
|
||||
Flexible(
|
||||
child: Text(
|
||||
AppLocalizations.of(context).faq,
|
||||
softWrap: true,
|
||||
style: const TextStyle(
|
||||
fontSize: 16.5,
|
||||
),
|
||||
textAlign: TextAlign.left,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
34
lib/features/service/screens/quick_links_screen.dart
Normal file
34
lib/features/service/screens/quick_links_screen.dart
Normal file
@@ -0,0 +1,34 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:kmobile/l10n/app_localizations.dart';
|
||||
|
||||
class QuickLinksScreen extends StatefulWidget {
|
||||
const QuickLinksScreen({super.key});
|
||||
|
||||
@override
|
||||
State<QuickLinksScreen> createState() => _QuickLinksScreenState();
|
||||
}
|
||||
|
||||
class _QuickLinksScreenState extends State<QuickLinksScreen> {
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_getQuickLinks();
|
||||
}
|
||||
|
||||
// A placeholder for your future API call
|
||||
Future<void> _getQuickLinks() async {
|
||||
// TODO: Implement API call to fetch quick links data
|
||||
// For now, simulating a network call with a delay
|
||||
await Future.delayed(const Duration(seconds: 1));
|
||||
// In a real implementation, you would process the API response here
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text(AppLocalizations.of(context).quickLinks),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,9 @@
|
||||
import 'package:kmobile/features/service/screens/branch_locator_screen.dart';
|
||||
|
||||
import '../../../l10n/app_localizations.dart';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:material_symbols_icons/material_symbols_icons.dart';
|
||||
|
||||
import 'package:kmobile/features/service/screens/quick_links_screen.dart';
|
||||
import 'package:kmobile/features/service/screens/faqs_screen.dart';
|
||||
class ServiceScreen extends StatefulWidget {
|
||||
const ServiceScreen({super.key});
|
||||
|
||||
@@ -42,15 +41,23 @@ Widget build(BuildContext context) {
|
||||
ServiceManagementTile(
|
||||
icon: Symbols.captive_portal,
|
||||
label: AppLocalizations.of(context).quickLinks,
|
||||
onTap: () {},
|
||||
disabled: true,
|
||||
onTap: () {
|
||||
Navigator.of(context).push(
|
||||
MaterialPageRoute(builder: (context) => const QuickLinksScreen()),
|
||||
);
|
||||
},
|
||||
disabled: false,
|
||||
),
|
||||
const Divider(height: 1),
|
||||
ServiceManagementTile(
|
||||
icon: Symbols.question_mark,
|
||||
label: AppLocalizations.of(context).faq,
|
||||
onTap: () {},
|
||||
disabled: true,
|
||||
onTap: () {
|
||||
Navigator.of(context).push(
|
||||
MaterialPageRoute(builder: (context) => const FaqsScreen()),
|
||||
);
|
||||
},
|
||||
disabled: false,
|
||||
),
|
||||
const Divider(height: 1),
|
||||
ServiceManagementTile(
|
||||
|
||||
Reference in New Issue
Block a user