add elevatio to business info card
This commit is contained in:
@@ -321,116 +321,126 @@ class _MihBusinessCardState extends State<MihBusinessCard> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Container(
|
return Material(
|
||||||
decoration: BoxDecoration(
|
color: MzanziInnovationHub.of(context)!
|
||||||
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
.theme
|
||||||
borderRadius: BorderRadius.circular(10),
|
.secondaryColor()
|
||||||
),
|
.withValues(alpha: 0.6),
|
||||||
child: Column(
|
borderRadius: BorderRadius.circular(25),
|
||||||
children: [
|
elevation: 10,
|
||||||
const SizedBox(height: 10),
|
shadowColor: Colors.black,
|
||||||
_buildContactInfo(
|
child: Container(
|
||||||
"Call",
|
decoration: BoxDecoration(
|
||||||
"Give us a quick call.",
|
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
||||||
Icons.phone,
|
borderRadius: BorderRadius.circular(10),
|
||||||
const Color(0xffaff0b3),
|
),
|
||||||
() {
|
child: Column(
|
||||||
// print("Calling ${widget.cellNumber}");
|
children: [
|
||||||
_makePhoneCall(widget.cellNumber);
|
const SizedBox(height: 10),
|
||||||
},
|
_buildContactInfo(
|
||||||
),
|
"Call",
|
||||||
Divider(
|
"Give us a quick call.",
|
||||||
color: MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
Icons.phone,
|
||||||
),
|
const Color(0xffaff0b3),
|
||||||
_buildContactInfo(
|
|
||||||
"Email",
|
|
||||||
"Send us an email.",
|
|
||||||
Icons.email,
|
|
||||||
const Color(0xffdaa2e9),
|
|
||||||
() {
|
|
||||||
// print("Emailing ${widget.email}");
|
|
||||||
_launchEmail(
|
|
||||||
widget.email,
|
|
||||||
"Inquiery about ${widget.businessName}",
|
|
||||||
"Dear ${widget.businessName},\n\nI would like to inquire about your services.\n\nBest regards,\n",
|
|
||||||
);
|
|
||||||
},
|
|
||||||
),
|
|
||||||
Divider(
|
|
||||||
color: MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
|
||||||
),
|
|
||||||
_buildContactInfo(
|
|
||||||
"Location",
|
|
||||||
"Come visit us.",
|
|
||||||
Icons.location_on,
|
|
||||||
const Color(0xffe9e8a1),
|
|
||||||
() {
|
|
||||||
final latitude = double.parse(widget.gpsLocation.split(',')[0]);
|
|
||||||
final longitude = double.parse(widget.gpsLocation.split(',')[1]);
|
|
||||||
_launchGoogleMapsWithUrl(
|
|
||||||
latitude: latitude,
|
|
||||||
longitude: longitude,
|
|
||||||
);
|
|
||||||
},
|
|
||||||
),
|
|
||||||
Visibility(
|
|
||||||
visible: widget.website != null && widget.website! != "",
|
|
||||||
child: Divider(
|
|
||||||
color: MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
Visibility(
|
|
||||||
visible: widget.website != null && widget.website! != "",
|
|
||||||
child: _buildContactInfo(
|
|
||||||
"Website",
|
|
||||||
"Find out more about us.",
|
|
||||||
Icons.vpn_lock,
|
|
||||||
const Color(0xffd67d8a),
|
|
||||||
() {
|
() {
|
||||||
_launchWebsite(widget.website!);
|
// print("Calling ${widget.cellNumber}");
|
||||||
|
_makePhoneCall(widget.cellNumber);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
Divider(
|
||||||
// Padding(
|
color: MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
||||||
// padding: const EdgeInsets.symmetric(horizontal: 10.0),
|
),
|
||||||
// child: Divider(
|
_buildContactInfo(
|
||||||
// color: MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
"Email",
|
||||||
// ),
|
"Send us an email.",
|
||||||
// ),
|
Icons.email,
|
||||||
// _buildContactInfo(
|
const Color(0xffdaa2e9),
|
||||||
// "Rate Us",
|
() {
|
||||||
// "Let us know how we are doing.",
|
// print("Emailing ${widget.email}");
|
||||||
// Icons.star_rate_rounded,
|
_launchEmail(
|
||||||
// const Color(0xffd69d7d),
|
widget.email,
|
||||||
// () {
|
"Inquiery about ${widget.businessName}",
|
||||||
// print("Opeining rating dialog");
|
"Dear ${widget.businessName},\n\nI would like to inquire about your services.\n\nBest regards,\n",
|
||||||
// // _launchWebsite(widget.website);
|
);
|
||||||
// },
|
},
|
||||||
// ),
|
),
|
||||||
// Padding(
|
Divider(
|
||||||
// padding: const EdgeInsets.symmetric(horizontal: 10.0),
|
color: MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
||||||
// child: Divider(
|
),
|
||||||
// color: MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
_buildContactInfo(
|
||||||
// ),
|
"Location",
|
||||||
// ),
|
"Come visit us.",
|
||||||
// _buildContactInfo(
|
Icons.location_on,
|
||||||
// "Bookmark",
|
const Color(0xffe9e8a1),
|
||||||
// "Save us for later.",
|
() {
|
||||||
// Icons.bookmark_add_rounded,
|
final latitude = double.parse(widget.gpsLocation.split(',')[0]);
|
||||||
// const Color(0xff6e7dcc),
|
final longitude =
|
||||||
// () {
|
double.parse(widget.gpsLocation.split(',')[1]);
|
||||||
// // _launchWebsite(widget.website);
|
_launchGoogleMapsWithUrl(
|
||||||
// print("Saving ${widget.businessName} to Directory");
|
latitude: latitude,
|
||||||
// },
|
longitude: longitude,
|
||||||
// ),
|
);
|
||||||
const SizedBox(height: 10),
|
},
|
||||||
// Padding(
|
),
|
||||||
// padding: const EdgeInsets.symmetric(horizontal: 10.0),
|
Visibility(
|
||||||
// child: Divider(
|
visible: widget.website != null && widget.website! != "",
|
||||||
// color: MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
child: Divider(
|
||||||
// ),
|
color: MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
||||||
// ),
|
),
|
||||||
],
|
),
|
||||||
|
Visibility(
|
||||||
|
visible: widget.website != null && widget.website! != "",
|
||||||
|
child: _buildContactInfo(
|
||||||
|
"Website",
|
||||||
|
"Find out more about us.",
|
||||||
|
Icons.vpn_lock,
|
||||||
|
const Color(0xffd67d8a),
|
||||||
|
() {
|
||||||
|
_launchWebsite(widget.website!);
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
// Padding(
|
||||||
|
// padding: const EdgeInsets.symmetric(horizontal: 10.0),
|
||||||
|
// child: Divider(
|
||||||
|
// color: MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
// _buildContactInfo(
|
||||||
|
// "Rate Us",
|
||||||
|
// "Let us know how we are doing.",
|
||||||
|
// Icons.star_rate_rounded,
|
||||||
|
// const Color(0xffd69d7d),
|
||||||
|
// () {
|
||||||
|
// print("Opeining rating dialog");
|
||||||
|
// // _launchWebsite(widget.website);
|
||||||
|
// },
|
||||||
|
// ),
|
||||||
|
// Padding(
|
||||||
|
// padding: const EdgeInsets.symmetric(horizontal: 10.0),
|
||||||
|
// child: Divider(
|
||||||
|
// color: MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
// _buildContactInfo(
|
||||||
|
// "Bookmark",
|
||||||
|
// "Save us for later.",
|
||||||
|
// Icons.bookmark_add_rounded,
|
||||||
|
// const Color(0xff6e7dcc),
|
||||||
|
// () {
|
||||||
|
// // _launchWebsite(widget.website);
|
||||||
|
// print("Saving ${widget.businessName} to Directory");
|
||||||
|
// },
|
||||||
|
// ),
|
||||||
|
const SizedBox(height: 10),
|
||||||
|
// Padding(
|
||||||
|
// padding: const EdgeInsets.symmetric(horizontal: 10.0),
|
||||||
|
// child: Divider(
|
||||||
|
// color: MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user