New KCCB logo

This commit is contained in:
2025-11-17 16:06:07 +05:30
parent 547f534037
commit f6e851a9ee
38 changed files with 282 additions and 193 deletions

View File

@@ -95,11 +95,13 @@ class _ATMLocatorScreenState extends State<ATMLocatorScreen> {
IgnorePointer(
child: Center(
child: Opacity(
opacity: 0.1, // Low opacity for background logo
child: Image.asset(
'assets/images/logo.png', // Background logo image
width: 200, // Adjust size as needed
height: 200, // Adjust size as needed
opacity: 0.07, // Reduced opacity
child: ClipOval(
child: Image.asset(
'assets/images/logo.png', // Background logo image
width: 200, // Adjust size as needed
height: 200, // Adjust size as needed
),
),
),
),
@@ -119,9 +121,7 @@ class _ATMLocatorScreenState extends State<ATMLocatorScreen> {
title: Text(atm.name, // Display the ATM's name
style: const TextStyle(fontWeight: FontWeight.bold)),
onTap: () {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(content: Text("Selected ${atm.name}")), // Show snackbar on tap
);
// No action on tap as per user request
},
),
);

View File

@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:kmobile/api/services/branch_service.dart';
import 'package:url_launcher/url_launcher.dart';
class BranchDetailsScreen extends StatelessWidget {
final Branch branch;
@@ -24,15 +25,15 @@
_buildDetailRow("Block", branch.block),
_buildDetailRow("District", branch.distt_name),
_buildDetailRow("Pincode", branch.pincode),
_buildDetailRow("Post Office", branch.post_office),
_buildDetailRow("Date of Opening", branch.date_of_opening),
_buildDetailRow("Branch Type", branch.type_of_branch),
// _buildDetailRow("Post Office", branch.post_office),
// _buildDetailRow("Date of Opening", branch.date_of_opening),
// _buildDetailRow("Branch Type", branch.type_of_branch),
_buildDetailRow("Telephone No.", branch.telephone_no),
_buildDetailRow("RTGS Account No.", branch.rtgs_acct_no),
_buildDetailRow("RBI Code 1", branch.rbi_code_1),
_buildDetailRow("RBI Code 2", branch.rbi_code_2),
_buildDetailRow("Latitude", branch.br_lattitude),
_buildDetailRow("Longitude", branch.br_longitude),
// _buildDetailRow("RTGS Account No.", branch.rtgs_acct_no),
// _buildDetailRow("RBI Code 1", branch.rbi_code_1),
// _buildDetailRow("RBI Code 2", branch.rbi_code_2),
// _buildDetailRow("Latitude", branch.br_lattitude),
// _buildDetailRow("Longitude", branch.br_longitude),
],
),
),
@@ -53,16 +54,36 @@
),
),
const SizedBox(height: 4),
Text(
value,
style: const TextStyle(
fontSize: 16,
fontWeight: FontWeight.w500,
),
),
label == "Telephone No."
? InkWell(
onTap: () => _launchUrl('tel:$value'),
child: Text(
value,
style: const TextStyle(
fontSize: 16,
fontWeight: FontWeight.w500,
color: Colors.blue, // Indicate it's clickable
decoration: TextDecoration.underline,
),
),
)
: Text(
value,
style: const TextStyle(
fontSize: 16,
fontWeight: FontWeight.w500,
),
),
const Divider(height: 16),
],
),
);
}
Future<void> _launchUrl(String urlString) async {
final Uri url = Uri.parse(urlString);
if (!await launchUrl(url)) {
throw 'Could not launch $urlString';
}
}
}

View File

@@ -97,11 +97,13 @@ class BranchLocatorScreen extends StatefulWidget {
IgnorePointer(
child: Center(
child: Opacity(
opacity: 0.1, // Low opacity
child: Image.asset(
'assets/images/logo.png',
width: 200, // Adjust size as needed
height: 200, // Adjust size as needed
opacity: 0.07, // Reduced opacity
child: ClipOval(
child: Image.asset(
'assets/images/logo.png',
width: 200, // Adjust size as needed
height: 200, // Adjust size as needed
),
),
),
),

View File

@@ -58,11 +58,13 @@ class _FaqsScreenState extends State<FaqsScreen> {
IgnorePointer(
child: Center(
child: Opacity(
opacity: 0.1,
child: Image.asset(
'assets/images/logo.png',
width: 200,
height: 200,
opacity: 0.07,
child: ClipOval(
child: Image.asset(
'assets/images/logo.png',
width: 200,
height: 200,
),
),
),
),

View File

@@ -78,11 +78,13 @@
IgnorePointer(
child: Center(
child: Opacity(
opacity: 0.1,
child: Image.asset(
'assets/images/logo.png',
width: 200,
height: 200,
opacity: 0.07,
child: ClipOval(
child: Image.asset(
'assets/images/logo.png',
width: 200,
height: 200,
),
),
),
),

View File

@@ -83,11 +83,13 @@ class _ServiceScreen extends State<ServiceScreen> {
IgnorePointer(
child: Center(
child: Opacity(
opacity: 0.1, // Low opacity
child: Image.asset(
'assets/images/logo.png',
width: 200, // Adjust size as needed
height: 200, // Adjust size as needed
opacity: 0.07, // Reduced opacity
child: ClipOval(
child: Image.asset(
'assets/images/logo.png',
width: 200, // Adjust size as needed
height: 200, // Adjust size as needed
),
),
),
),