diff --git a/lib/main.dart b/lib/main.dart index 6bf91e2..2afe86a 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -167,3 +167,12 @@ class MyApp extends StatelessWidget { ); } } + +//Latitude: 24.708741, Longitude: 46.6657643, + + +//Longitude=24.708741&Latitude=46.6657643 + + +//update I/flutter ( 5035): │ "latitude": "37.421998", +// I/flutter ( 5035): │ "longitude": "-122.0839", diff --git a/lib/views/branches/provider_profile_view.dart b/lib/views/branches/provider_profile_view.dart index 7ae88c5..d559f8a 100644 --- a/lib/views/branches/provider_profile_view.dart +++ b/lib/views/branches/provider_profile_view.dart @@ -46,6 +46,15 @@ class _ProviderProfileViewState extends State { 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 { 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 { ], ), ], - if (appointmentsVM.providerProfileModel!.memberSince!.isNotEmpty) ...[ Row( children: [ @@ -137,7 +144,7 @@ class _ProviderProfileViewState extends State { 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 ?? "",