|
|
|
|
@ -46,6 +46,15 @@ class _ProviderProfileViewState extends State<ProviderProfileView> {
|
|
|
|
|
body: Center(child: CircularProgressIndicator()),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String providerBannerImageUrl = "";
|
|
|
|
|
|
|
|
|
|
if (appointmentsVM.providerProfileModel!.serviceProviderBranch!.isNotEmpty) {
|
|
|
|
|
if (appointmentsVM.providerProfileModel!.serviceProviderBranch!.first.branchImages!.isNotEmpty) {
|
|
|
|
|
providerBannerImageUrl = appointmentsVM.providerProfileModel!.serviceProviderBranch!.first.branchImages!.first.imageUrl ?? "";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return Scaffold(
|
|
|
|
|
appBar: CustomAppBar(
|
|
|
|
|
title: LocaleKeys.providerDetails.tr(),
|
|
|
|
|
@ -77,15 +86,14 @@ class _ProviderProfileViewState extends State<ProviderProfileView> {
|
|
|
|
|
body: Container(
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
height: double.infinity,
|
|
|
|
|
padding: EdgeInsets.all(21),
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 21),
|
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
//TODO: company logo/banner not added form provider app yet
|
|
|
|
|
Image.asset(MyAssets.bnCar),
|
|
|
|
|
Center(child: providerBannerImageUrl.buildNetworkImage(height: 250, width: double.infinity, fit: BoxFit.cover)),
|
|
|
|
|
12.height,
|
|
|
|
|
if (appointmentsVM.providerProfileModel!.memberSince!.isNotEmpty) ...[
|
|
|
|
|
Row(
|
|
|
|
|
@ -99,7 +107,6 @@ class _ProviderProfileViewState extends State<ProviderProfileView> {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
if (appointmentsVM.providerProfileModel!.memberSince!.isNotEmpty) ...[
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
@ -137,7 +144,7 @@ class _ProviderProfileViewState extends State<ProviderProfileView> {
|
|
|
|
|
onCardTapped: () {
|
|
|
|
|
navigateWithName(context, AppRoutes.branchDetailView, arguments: branchModel);
|
|
|
|
|
},
|
|
|
|
|
providerImageUrl: MyAssets.bnCar,
|
|
|
|
|
providerImageUrl: (branchModel.branchImages != null && branchModel.branchImages!.isNotEmpty) ? (branchModel.branchImages!.first.imageUrl ?? "") : "",
|
|
|
|
|
title: branchModel.branchName ?? "",
|
|
|
|
|
providerLocation: branchModel.distanceKm.toString() + " KM",
|
|
|
|
|
providerName: branchModel.serviceProviderName ?? "",
|
|
|
|
|
|