fix error when no profile picture
This commit is contained in:
parent
a8a0f3d620
commit
364f0302a9
1 changed files with 4 additions and 1 deletions
|
|
@ -69,6 +69,9 @@ class MihBusinessDetailsServices {
|
||||||
return const Mihloadingcircle();
|
return const Mihloadingcircle();
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
String logoPath = businessLogoFilename.isNotEmpty
|
||||||
|
? "$appId/business_files/$businessLogoFilename"
|
||||||
|
: "";
|
||||||
var response = await http.post(
|
var response = await http.post(
|
||||||
Uri.parse("${AppEnviroment.baseApiUrl}/business/insert/"),
|
Uri.parse("${AppEnviroment.baseApiUrl}/business/insert/"),
|
||||||
headers: <String, String>{
|
headers: <String, String>{
|
||||||
|
|
@ -79,7 +82,7 @@ class MihBusinessDetailsServices {
|
||||||
"type": businessType,
|
"type": businessType,
|
||||||
"registration_no": businessRegistrationNo,
|
"registration_no": businessRegistrationNo,
|
||||||
"logo_name": businessLogoFilename,
|
"logo_name": businessLogoFilename,
|
||||||
"logo_path": "$appId/business_files/$businessLogoFilename",
|
"logo_path": logoPath,
|
||||||
"contact_no": businessPhoneNumber,
|
"contact_no": businessPhoneNumber,
|
||||||
"bus_email": businessEmail,
|
"bus_email": businessEmail,
|
||||||
"gps_location": businessLocation,
|
"gps_location": businessLocation,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue