// ignore_for_file: prefer_const_constructors, prefer_const_literals_to_create_immutables, sort_child_properties_last
import 'package:firebase_storage/firebase_storage.dart';
import 'package:flutter/material.dart';
import 'package:flutter/src/widgets/container.dart';
import 'package:flutter/src/widgets/framework.dart';
const Color aColor = Color.fromARGB(255, 0, 0, 0);
const Color bColor = Color.fromARGB(255, 255, 255, 255);
const Color cColor = Color.fromRGBO(93, 176, 116, 1);
// ignore: use_key_in_widget_constructors
class ContactPro extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Column(
children: [
Expanded(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 10.0),
child: ListView(
scrollDirection: Axis.vertical,
children: [
SizedBox(
height: 5,
),
Row(
children: [
IconButton(
icon: const Icon(Icons.arrow_back),
onPressed: () => Navigator.of(context).pop(),
),
const Expanded(
child: Padding(
padding: EdgeInsets.symmetric(horizontal: 10.0),
child: Center(
child: Padding(
padding: EdgeInsets.only(bottom: 0),
child: Text(
'Contact Admin',
style: TextStyle(
fontSize: 30,
fontWeight: FontWeight.w700,
color: aColor,
),
),
),
),
),
),
const SizedBox(
width: 40,
),
],
),
SizedBox(
height: 20,
),
Row(
children: [
Spacer(),
FutureBuilder(
future: FirebaseStorage.instance
.ref('admin_images/callcenter.png')
.getDownloadURL(),
builder: (BuildContext context,
AsyncSnapshot<String> snapshot) {
if (snapshot.hasError) {
return const Icon(
Icons.error_outline,
size: 50,
);
} else if (snapshot.connectionState ==
ConnectionState.done) {
return Image.network(
snapshot.data!,
height: 200,
width: 180,
fit: BoxFit.fitWidth,
);
} else {
return const CircularProgressIndicator();
}
},
),
Spacer(),
],
),
SizedBox(
height: 20,
),
Column(
children: [
Row(
children: [
Spacer(),
Container(
height: 30,
width: 250,
decoration: BoxDecoration(
color: cColor,
border: Border.all(width: 1, color: cColor),
borderRadius: BorderRadius.circular(12)),
child: Row(
children: [
Spacer(),
Icon(
Icons.email_outlined,
color: bColor,
),
Text(
' Email : Admintt@gmail.com',
style: TextStyle(
color: bColor,
fontWeight: FontWeight.bold),
),
Spacer(),
],
),
),
Spacer(),
],
)
],
),
SizedBox(
height: 20,
),
Column(
children: [
Row(
children: [
Spacer(),
Container(
height: 30,
width: 250,
decoration: BoxDecoration(
color: cColor,
border: Border.all(width: 1, color: cColor),
borderRadius: BorderRadius.circular(12)),
child: Row(
children: [
SizedBox(
width: 20,
),
Icon(
Icons.call,
color: bColor,
),
Text(
' Tel : 080-111-2191',
style: TextStyle(
color: bColor,
fontWeight: FontWeight.bold),
),
Spacer(),
],
),
),
Spacer(),
],
)
],
),
SizedBox(
height: 20,
),
Column(
children: [
Row(
children: [
Spacer(),
Container(
height: 30,
width: 250,
decoration: BoxDecoration(
color: cColor,
border: Border.all(width: 1, color: cColor),
borderRadius: BorderRadius.circular(12)),
child: Row(
children: [
SizedBox(
width: 20,
),
Icon(
Icons.access_time,
color: bColor,
),
Text(
' Office hours : 8.00 - 17.00 ',
style: TextStyle(
color: bColor,
fontWeight: FontWeight.bold),
),
Spacer(),
],
),
),
Spacer(),
],
)
],
),
SizedBox(
height: 20,
),
Column(
children: [
Row(
children: [
Spacer(),
Container(
height: 30,
width: 250,
decoration: BoxDecoration(
color: cColor,
border: Border.all(width: 1, color: cColor),
borderRadius: BorderRadius.circular(12)),
child: Row(
children: [
SizedBox(
width: 20,
),
Icon(
Icons.work,
color: bColor,
),
Text(
' Working day : Monday - Friday ',
style: TextStyle(
color: bColor,
fontWeight: FontWeight.bold),
),
Spacer(),
],
),
),
Spacer(),
],
)
],
)
],
),
),
),
],
),
);
}
}