132 lines
3.8 KiB
Dart
132 lines
3.8 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
class ContactPage extends StatelessWidget {
|
|
const ContactPage({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return SingleChildScrollView(
|
|
padding: const EdgeInsets.all(16.0),
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
const Text(
|
|
'Contact Us',
|
|
style: TextStyle(
|
|
fontSize: 28,
|
|
fontWeight: FontWeight.bold,
|
|
color: Colors.green,
|
|
),
|
|
),
|
|
const SizedBox(height: 20),
|
|
|
|
// Contact Info Card
|
|
Card(
|
|
elevation: 2,
|
|
child: Padding(
|
|
padding: const EdgeInsets.all(16.0),
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
const Text(
|
|
'Email:',
|
|
style: TextStyle(fontWeight: FontWeight.bold),
|
|
),
|
|
const Text('sales@dailykart.com'),
|
|
const SizedBox(height: 10),
|
|
const Text(
|
|
'Address:',
|
|
style: TextStyle(fontWeight: FontWeight.bold),
|
|
),
|
|
const Text('Bengaluru, Karnataka - 562130'),
|
|
const SizedBox(height: 10),
|
|
const Text(
|
|
'Phone:',
|
|
style: TextStyle(fontWeight: FontWeight.bold),
|
|
),
|
|
const Text('+1 123 456 789'),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
|
|
const SizedBox(height: 30),
|
|
|
|
// Bulk Orders Form
|
|
const Text(
|
|
'For Bulk Orders',
|
|
style: TextStyle(
|
|
fontSize: 22,
|
|
fontWeight: FontWeight.bold,
|
|
color: Colors.green,
|
|
),
|
|
),
|
|
const SizedBox(height: 10),
|
|
|
|
TextField(
|
|
decoration: InputDecoration(
|
|
labelText: 'Your Name',
|
|
border: OutlineInputBorder(),
|
|
),
|
|
),
|
|
const SizedBox(height: 10),
|
|
TextField(
|
|
decoration: InputDecoration(
|
|
labelText: 'Email Address',
|
|
border: OutlineInputBorder(),
|
|
),
|
|
),
|
|
const SizedBox(height: 10),
|
|
TextField(
|
|
maxLines: 4,
|
|
decoration: InputDecoration(
|
|
labelText: 'Message / Requirements',
|
|
border: OutlineInputBorder(),
|
|
),
|
|
),
|
|
const SizedBox(height: 20),
|
|
ElevatedButton(
|
|
onPressed: () {
|
|
// TODO: Handle form submission
|
|
ScaffoldMessenger.of(context).showSnackBar(
|
|
const SnackBar(content: Text('Thank you for your inquiry!')),
|
|
);
|
|
},
|
|
style: ElevatedButton.styleFrom(
|
|
backgroundColor: Colors.green[800],
|
|
),
|
|
child: const Text('Submit'),
|
|
),
|
|
|
|
const SizedBox(height: 30),
|
|
|
|
// Footer Links (Optional)
|
|
const Text(
|
|
'Quick Links',
|
|
style: TextStyle(
|
|
fontSize: 18,
|
|
fontWeight: FontWeight.bold,
|
|
),
|
|
),
|
|
const SizedBox(height: 10),
|
|
...[
|
|
'Helps & Faqs',
|
|
'Store Location',
|
|
'Orders & Returns',
|
|
'Deliveries',
|
|
'Refund & Returns',
|
|
].map((text) => ListTile(
|
|
title: Text(text),
|
|
trailing: const Icon(Icons.arrow_forward_ios, size: 16),
|
|
onTap: () {
|
|
// Optional: Navigate to related pages
|
|
ScaffoldMessenger.of(context).showSnackBar(
|
|
SnackBar(content: Text('$text not implemented yet')),
|
|
);
|
|
},
|
|
)),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
} |