|
|
|
|
@ -1,9 +1,6 @@
|
|
|
|
|
import 'dart:async';
|
|
|
|
|
import 'dart:developer';
|
|
|
|
|
|
|
|
|
|
import 'package:car_customer_app/views/branches/components/branch_reviews_widget.dart';
|
|
|
|
|
import 'package:car_customer_app/views/branches/components/items_list_sheet.dart';
|
|
|
|
|
import 'package:mc_common_app/main.dart';
|
|
|
|
|
import 'package:mc_common_app/view_models/appointments_view_model.dart';
|
|
|
|
|
import 'package:easy_localization/easy_localization.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
@ -191,17 +188,16 @@ class _BranchDetailViewState extends State<BranchDetailView> {
|
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
|
return ExpansionTile(
|
|
|
|
|
tilePadding: EdgeInsets.zero,
|
|
|
|
|
title: (widget.branchDetailModel.branchServices![index].serviceDescription ?? "").toText(
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
isBold: true,
|
|
|
|
|
),
|
|
|
|
|
title: (widget.branchDetailModel.branchServices![index].serviceDescription ?? "").toText(fontSize: 16),
|
|
|
|
|
children: [
|
|
|
|
|
Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
showItem(LocaleKeys.allowingHomeService.tr() + " :", (widget.branchDetailModel.branchServices![index].isAllowAppointment ?? false) ? "Yes" : "No", valueColor: Colors.green),
|
|
|
|
|
showItem(LocaleKeys.homeServiceRange.tr() + " :", widget.branchDetailModel.branchServices![index].customerLocationRange.toString() + "KM"),
|
|
|
|
|
showItem(LocaleKeys.chargesPerKM.tr() + " :", widget.branchDetailModel.branchServices![index].customerLocationRange.toString() + LocaleKeys.sar.tr()),
|
|
|
|
|
showItem(LocaleKeys.allowingHomeService.tr() + " :", (widget.branchDetailModel.branchServices![index].isAllowAppointment ?? false) ? LocaleKeys.yes.tr() : LocaleKeys.no.tr(), valueColor: Colors.green),
|
|
|
|
|
if ((widget.branchDetailModel.branchServices![index].isAllowAppointment ?? false)) ...[
|
|
|
|
|
showItem(LocaleKeys.homeServiceRange.tr() + " :", widget.branchDetailModel.branchServices![index].customerLocationRange.toString() + "KM"),
|
|
|
|
|
showItem(LocaleKeys.chargesPerKM.tr() + " :", widget.branchDetailModel.branchServices![index].customerLocationRange.toString() + LocaleKeys.sar.tr()),
|
|
|
|
|
],
|
|
|
|
|
8.height,
|
|
|
|
|
((widget.branchDetailModel.branchServices![index].itemsCount != null && widget.branchDetailModel.branchServices![index].itemsCount! > 0)
|
|
|
|
|
? widget.branchDetailModel.branchServices![index].itemsCount.toString() + " items"
|
|
|
|
|
@ -247,9 +243,9 @@ class _BranchDetailViewState extends State<BranchDetailView> {
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
item.toText(fontSize: 12, color: MyColors.lightTextColor, isBold: true),
|
|
|
|
|
item.toText(fontSize: 12, color: MyColors.lightTextColor),
|
|
|
|
|
4.width,
|
|
|
|
|
value.toText(fontSize: 12, color: valueColor, isBold: true),
|
|
|
|
|
value.toText(fontSize: 12, color: valueColor),
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|