|
|
|
|
@ -1,5 +1,3 @@
|
|
|
|
|
import 'dart:convert';
|
|
|
|
|
|
|
|
|
|
import 'package:carousel_slider/carousel_slider.dart';
|
|
|
|
|
import 'package:easy_localization/easy_localization.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
@ -107,22 +105,34 @@ class _ItemForSaleDetailPageState extends State<ItemForSaleDetailPage> {
|
|
|
|
|
).expanded,
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
DefaultButton("Email", () async {
|
|
|
|
|
DefaultButton(
|
|
|
|
|
"Email",
|
|
|
|
|
getItemsForSaleList.status == 'Approved'
|
|
|
|
|
? () async {
|
|
|
|
|
Uri emailLaunchUri = Uri(
|
|
|
|
|
scheme: 'mailto',
|
|
|
|
|
path: getItemsForSaleList.emailAddress,
|
|
|
|
|
);
|
|
|
|
|
launchUrl(emailLaunchUri);
|
|
|
|
|
}, iconData: Icons.email_sharp, isTextExpanded: false)
|
|
|
|
|
}
|
|
|
|
|
: null,
|
|
|
|
|
iconData: Icons.email_sharp,
|
|
|
|
|
isTextExpanded: false)
|
|
|
|
|
.expanded,
|
|
|
|
|
8.width,
|
|
|
|
|
DefaultButton("Call", () async {
|
|
|
|
|
DefaultButton(
|
|
|
|
|
"Call",
|
|
|
|
|
getItemsForSaleList.status == 'Approved'
|
|
|
|
|
? () async {
|
|
|
|
|
Uri callLaunchUri = Uri(
|
|
|
|
|
scheme: 'tel',
|
|
|
|
|
path: getItemsForSaleList.mobileNumber,
|
|
|
|
|
);
|
|
|
|
|
launchUrl(callLaunchUri);
|
|
|
|
|
}, iconData: Icons.call_sharp, isTextExpanded: false)
|
|
|
|
|
}
|
|
|
|
|
: null,
|
|
|
|
|
iconData: Icons.call_sharp,
|
|
|
|
|
isTextExpanded: false)
|
|
|
|
|
.expanded,
|
|
|
|
|
],
|
|
|
|
|
).insideContainer,
|
|
|
|
|
|