|
|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
import 'dart:async';
|
|
|
|
|
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/utils/utils.dart';
|
|
|
|
|
import 'package:mc_common_app/view_models/appointments_view_model.dart';
|
|
|
|
|
import 'package:easy_localization/easy_localization.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
@ -169,11 +170,15 @@ class _BranchDetailViewState extends State<BranchDetailView> {
|
|
|
|
|
),
|
|
|
|
|
ShowFillButton(
|
|
|
|
|
maxHeight: 55,
|
|
|
|
|
// isDisabled: widget.branchDetailModel.branchServices!.length == 0,
|
|
|
|
|
isDisabled: widget.branchDetailModel.branchServices!.length == 0,
|
|
|
|
|
title: LocaleKeys.bookAppointment.tr(),
|
|
|
|
|
margin: EdgeInsets.all(12),
|
|
|
|
|
maxWidth: double.infinity,
|
|
|
|
|
onPressed: () {
|
|
|
|
|
if (widget.branchDetailModel.branchServices!.length == 0) {
|
|
|
|
|
Utils.showToast(LocaleKeys.noServicesAvailable.tr());
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
navigateWithName(context, AppRoutes.bookAppointmenServicesView);
|
|
|
|
|
context.read<AppointmentsVM>().updateSelectedBranch(widget.branchDetailModel);
|
|
|
|
|
},
|
|
|
|
|
|