Enquiry_screen ui changed
This commit is contained in:
@@ -53,27 +53,54 @@ class _EnquiryScreen extends State<EnquiryScreen> {
|
||||
}
|
||||
|
||||
Widget _buildContactItem(String role, String email, String phone) {
|
||||
return Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(role,
|
||||
style: TextStyle(color: Theme.of(context).colorScheme.onSurface)),
|
||||
const SizedBox(height: 4),
|
||||
GestureDetector(
|
||||
onTap: () => _launchEmailAddress(email),
|
||||
child: Text(email,
|
||||
style: TextStyle(color: Theme.of(context).colorScheme.primary)),
|
||||
return Card(
|
||||
elevation: 4,
|
||||
margin: const EdgeInsets.symmetric(vertical: 8),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(role,
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).colorScheme.onSurface,
|
||||
fontSize: 15,
|
||||
fontWeight: FontWeight.bold)),
|
||||
const SizedBox(height: 8),
|
||||
GestureDetector(
|
||||
onTap: () => _launchEmailAddress(email),
|
||||
child: Row(
|
||||
children: [
|
||||
const Icon(Icons.email),
|
||||
const SizedBox(width: 8),
|
||||
Expanded(
|
||||
child: Text(email,
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
fontSize: 14)),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
GestureDetector(
|
||||
onTap: () => _launchPhoneNumber(phone),
|
||||
child: Row(
|
||||
children: [
|
||||
const Icon(Icons.phone),
|
||||
const SizedBox(width: 8),
|
||||
Expanded(
|
||||
child: Text(phone,
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
fontSize: 14)),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
GestureDetector(
|
||||
onTap: () => _launchPhoneNumber(phone),
|
||||
child: Text(phone,
|
||||
style: TextStyle(
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.primary)), // Changed color for visibility
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -91,62 +118,67 @@ class _EnquiryScreen extends State<EnquiryScreen> {
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
const SizedBox(height: 20),
|
||||
GestureDetector(
|
||||
Card(
|
||||
elevation: 4,
|
||||
child: InkWell(
|
||||
onTap: () =>
|
||||
_launchUrl("https://kccbhp.bank.in/complaint-form/"),
|
||||
child: Row(mainAxisSize: MainAxisSize.min, children: [
|
||||
Text(
|
||||
"Complaint Form",
|
||||
style: TextStyle(
|
||||
fontSize: 17,
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
decoration: TextDecoration
|
||||
.underline, // Added underline for link clarity
|
||||
decorationColor:
|
||||
Theme.of(context).colorScheme.primary,
|
||||
),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text(
|
||||
"Complaint Form",
|
||||
style: TextStyle(
|
||||
fontSize: 15,
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
),
|
||||
),
|
||||
Icon(
|
||||
Icons.open_in_new,
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
size: 16.0,
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(width: 4),
|
||||
Icon(
|
||||
Icons.open_in_new,
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
size: 16.0,
|
||||
),
|
||||
])),
|
||||
const SizedBox(height: 40),
|
||||
),
|
||||
),
|
||||
),
|
||||
const Divider(height: 32),
|
||||
Text(
|
||||
AppLocalizations.of(context).keyContacts,
|
||||
style: TextStyle(
|
||||
fontSize: 17,
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
style: const TextStyle(
|
||||
fontSize: 15,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
// horizontal line
|
||||
),
|
||||
Divider(color: Theme.of(context).colorScheme.outline),
|
||||
const SizedBox(height: 16),
|
||||
_buildContactItem(
|
||||
AppLocalizations.of(context).chairman,
|
||||
"chairman@kccb.in",
|
||||
"01892-222677",
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
_buildContactItem(
|
||||
AppLocalizations.of(context).managingDirector,
|
||||
"md@kccb.in",
|
||||
"01892-224969",
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
_buildContactItem(
|
||||
AppLocalizations.of(context).gmWest,
|
||||
"gmw@kccb.in",
|
||||
"01892-223280",
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
_buildContactItem(
|
||||
AppLocalizations.of(context).gmNorth,
|
||||
"gmn@kccb.in",
|
||||
"01892-224607",
|
||||
Expanded(
|
||||
child: ListView(
|
||||
children: [
|
||||
_buildContactItem(
|
||||
AppLocalizations.of(context).chairman,
|
||||
"chairman@kccb.in",
|
||||
"01892-222677",
|
||||
),
|
||||
_buildContactItem(
|
||||
AppLocalizations.of(context).managingDirector,
|
||||
"md@kccb.in",
|
||||
"01892-224969",
|
||||
),
|
||||
_buildContactItem(
|
||||
AppLocalizations.of(context).gmWest,
|
||||
"gmw@kccb.in",
|
||||
"01892-223280",
|
||||
),
|
||||
_buildContactItem(
|
||||
AppLocalizations.of(context).gmNorth,
|
||||
"gmn@kccb.in",
|
||||
"01892-224607",
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user