implemented TPIN and quick pay within bank

This commit is contained in:
2025-06-23 04:47:05 +05:30
parent 0d2dfc817e
commit 77a2654401
44 changed files with 1692 additions and 1153 deletions

View File

@@ -11,27 +11,43 @@ class EnquiryScreen extends StatefulWidget {
}
class _EnquiryScreen extends State<EnquiryScreen> {
Future<void> _launchEmail() async {
final Uri emailUri = Uri(
scheme: 'mailto',
path: 'helpdesk@kccb.in',
);
Future<void> _launchEmailAddress(String email) async {
final Uri emailUri = Uri(scheme: 'mailto', path: email);
if (await canLaunchUrl(emailUri)) {
await launchUrl(emailUri);
} else {
debugPrint('Could not launch email client');
debugPrint('Could not launch email client for $email');
}
}
Future<void> _launchPhone() async {
final Uri phoneUri = Uri(scheme: 'tel', path: '0651-312861');
Future<void> _launchPhoneNumber(String phone) async {
final Uri phoneUri = Uri(scheme: 'tel', path: phone);
if (await canLaunchUrl(phoneUri)) {
await launchUrl(phoneUri);
} else {
debugPrint('Could not launch phone dialer');
debugPrint('Could not launch dialer for $phone');
}
}
Widget _buildContactItem(String role, String email, String phone) {
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(role, style: const TextStyle(color: Colors.grey)),
const SizedBox(height: 4),
GestureDetector(
onTap: () => _launchEmailAddress(email),
child: Text(email, style: const TextStyle(color: Colors.blue)),
),
const SizedBox(height: 4),
GestureDetector(
onTap: () => _launchPhoneNumber(phone),
child: Text(phone, style: const TextStyle(color: Colors.blue)),
),
],
);
}
@override
Widget build(BuildContext context) {
return Scaffold(
@@ -68,32 +84,50 @@ class _EnquiryScreen extends State<EnquiryScreen> {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const Text("Mail us at", style: TextStyle(color: Colors.grey)),
const SizedBox(height: 4),
GestureDetector(
onTap: _launchEmail,
child: const Text(
"helpdesk@kccb.in",
style: TextStyle(color: Colors.blue),
),
),
const SizedBox(height: 20),
const Text("Call us at", style: TextStyle(color: Colors.grey)),
const SizedBox(height: 4),
GestureDetector(
onTap: _launchPhone,
child: const Text(
"0651-312861",
style: TextStyle(color: Colors.blue),
),
),
// … existing Mail us / Call us / Write to us …
const SizedBox(height: 20),
const Text("Write to us", style: TextStyle(color: Colors.grey)),
const SizedBox(height: 4),
const Text(
"101 Street, Some Street, Some Address\nSome Address",
"complaint@kccb.in",
style: TextStyle(color: Colors.blue),
),
const SizedBox(height: 20),
Text(
"Key Contacts",
style: TextStyle(
fontSize: 17,
color: Theme.of(context).primaryColor,
),
// horizontal line
),
Divider(color: Colors.grey[300]),
const SizedBox(height: 16),
_buildContactItem(
"Chairman",
"chairman@kccb.in",
"01892-222677",
),
const SizedBox(height: 16),
_buildContactItem(
"Managing Director",
"md@kccb.in",
"01892-224969",
),
const SizedBox(height: 16),
_buildContactItem(
"General Manager (West)",
"gmw@kccb.in",
"01892-223280",
),
const SizedBox(height: 16),
_buildContactItem(
"General Manager (North)",
"gmn@kccb.in",
"01892-224607",
),
],
),
),