dark Theme and 18 other changes done
This commit is contained in:
@@ -20,17 +20,17 @@
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
_buildDetailRow("Branch Name", branch.branch_name),
|
||||
_buildDetailRow("Branch Code", branch.branch_code),
|
||||
_buildDetailRow("Zone", branch.zone),
|
||||
_buildDetailRow("Tehsil", branch.tehsil),
|
||||
_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("Telephone No.", branch.telephone_no),
|
||||
_buildDetailRow(context, "Branch Name", branch.branch_name),
|
||||
_buildDetailRow(context, "Branch Code", branch.branch_code),
|
||||
_buildDetailRow(context, "Zone", branch.zone),
|
||||
_buildDetailRow(context, "Tehsil", branch.tehsil),
|
||||
_buildDetailRow(context, "Block", branch.block),
|
||||
_buildDetailRow(context, "District", branch.distt_name),
|
||||
_buildDetailRow(context, "Pincode", branch.pincode),
|
||||
// _buildDetailRow(context, "Post Office", branch.post_office),
|
||||
// _buildDetailRow(context, "Date of Opening", branch.date_of_opening),
|
||||
// _buildDetailRow(context, "Branch Type", branch.type_of_branch),
|
||||
_buildDetailRow(context, "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),
|
||||
@@ -58,46 +58,46 @@
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildDetailRow(String label, String value) {
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 8.0),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
label,
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
color: Colors.grey[600],
|
||||
Widget _buildDetailRow(BuildContext context, String label, String value) {
|
||||
final theme = Theme.of(context);
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 8.0),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
label,
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
color: theme.textTheme.bodySmall?.color,
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
label == "Telephone No."
|
||||
? InkWell(
|
||||
onTap: () => _launchUrl('tel:$value'),
|
||||
child: Text(
|
||||
const SizedBox(height: 4),
|
||||
label == "Telephone No."
|
||||
? InkWell(
|
||||
onTap: () => _launchUrl('tel:$value'),
|
||||
child: Text(
|
||||
value,
|
||||
style: TextStyle(
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w500,
|
||||
color: theme.colorScheme.primary, // Indicate it's clickable
|
||||
decoration: TextDecoration.underline,
|
||||
),
|
||||
),
|
||||
)
|
||||
: 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),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Divider(height: 16, color: theme.dividerColor),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
Future<void> _launchUrl(String urlString) async {
|
||||
final Uri url = Uri.parse(urlString);
|
||||
if (!await launchUrl(url)) {
|
||||
|
||||
Reference in New Issue
Block a user