|
|
|
|
@ -15,6 +15,7 @@ import 'package:mc_common_app/view_models/appointments_view_model.dart';
|
|
|
|
|
import 'package:mc_common_app/widgets/bottom_sheet.dart';
|
|
|
|
|
import 'package:mc_common_app/widgets/button/show_fill_button.dart';
|
|
|
|
|
import 'package:mc_common_app/widgets/common_widgets/app_bar.dart';
|
|
|
|
|
import 'package:mc_common_app/widgets/extensions/extensions_widget.dart';
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
import '../dashboard/widget/appointment_slider_widget.dart';
|
|
|
|
|
|
|
|
|
|
@ -79,10 +80,10 @@ class UpdateAppointmentPage extends StatelessWidget {
|
|
|
|
|
Column(
|
|
|
|
|
children: [
|
|
|
|
|
showPayNowButton(context, appointmentsVM),
|
|
|
|
|
21.height,
|
|
|
|
|
showCancelButton(context, appointmentsVM),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
).paddingAll(21),
|
|
|
|
|
|
|
|
|
|
if (appointmentListModel.appointmentStatusEnum ==
|
|
|
|
|
AppointmentStatusEnum.confirmed &&
|
|
|
|
|
@ -92,7 +93,7 @@ class UpdateAppointmentPage extends StatelessWidget {
|
|
|
|
|
children: [
|
|
|
|
|
showArrivedutton(context, appointmentsVM),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
).paddingAll(21),
|
|
|
|
|
|
|
|
|
|
if (appointmentListModel.appointmentStatusEnum ==
|
|
|
|
|
AppointmentStatusEnum.arrived &&
|
|
|
|
|
@ -101,9 +102,10 @@ class UpdateAppointmentPage extends StatelessWidget {
|
|
|
|
|
Column(
|
|
|
|
|
children: [
|
|
|
|
|
showPayNowButton(context, appointmentsVM),
|
|
|
|
|
21.height,
|
|
|
|
|
showPayLaterButton(context, appointmentsVM),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
).paddingAll(21),
|
|
|
|
|
|
|
|
|
|
if ((appointmentListModel.appointmentStatusEnum ==
|
|
|
|
|
AppointmentStatusEnum.arrived ||
|
|
|
|
|
@ -123,7 +125,7 @@ class UpdateAppointmentPage extends StatelessWidget {
|
|
|
|
|
children: [
|
|
|
|
|
showWorkStartButton(context, appointmentsVM),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
).paddingAll(21),
|
|
|
|
|
|
|
|
|
|
if (appointmentListModel.appointmentStatusEnum ==
|
|
|
|
|
AppointmentStatusEnum.workStarted &&
|
|
|
|
|
@ -132,9 +134,10 @@ class UpdateAppointmentPage extends StatelessWidget {
|
|
|
|
|
Column(
|
|
|
|
|
children: [
|
|
|
|
|
showPayLaterButton(context, appointmentsVM),
|
|
|
|
|
21.height,
|
|
|
|
|
showPayNowButton(context, appointmentsVM),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
).paddingAll(21),
|
|
|
|
|
// "Show Pay Now".toText(),
|
|
|
|
|
|
|
|
|
|
if (appointmentListModel.appointmentStatusEnum ==
|
|
|
|
|
@ -145,14 +148,17 @@ class UpdateAppointmentPage extends StatelessWidget {
|
|
|
|
|
children: [
|
|
|
|
|
showCompleteButton(context, appointmentsVM),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
).paddingAll(21),
|
|
|
|
|
// "Show Complete Button".toText(),
|
|
|
|
|
if(appointmentListModel.appointmentStatusEnum==AppointmentStatusEnum.workStarted&&appointmentListModel.appointmentPaymentStatusEnum==AppointmentPaymentStatusEnum.payLater)
|
|
|
|
|
if (appointmentListModel.appointmentStatusEnum ==
|
|
|
|
|
AppointmentStatusEnum.workStarted &&
|
|
|
|
|
appointmentListModel.appointmentPaymentStatusEnum ==
|
|
|
|
|
AppointmentPaymentStatusEnum.payLater)
|
|
|
|
|
showPayNowButton(context, appointmentsVM),
|
|
|
|
|
|
|
|
|
|
if (appointmentListModel.appointmentStatusEnum ==
|
|
|
|
|
AppointmentStatusEnum.visitCompleted)
|
|
|
|
|
"Appointment is completed".toText(),
|
|
|
|
|
"Appointment is completed".toText().paddingAll(21),
|
|
|
|
|
|
|
|
|
|
// Padding(
|
|
|
|
|
// padding: const EdgeInsets.all(21.0),
|
|
|
|
|
|