|
|
|
|
@ -70,11 +70,12 @@ class AppointmentsFragment extends StatelessWidget {
|
|
|
|
|
LocaleKeys.noAppointmentstoShow.tr().toText(fontSize: 16, color: MyColors.lightTextColor),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
: ListView.builder(
|
|
|
|
|
: ListView.separated(
|
|
|
|
|
separatorBuilder: (context, index) => 12.height,
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
itemCount: appointmentsVM.myFilteredAppointments.length,
|
|
|
|
|
itemBuilder: (BuildContext context, int index) {
|
|
|
|
|
return BuildAppointmentContainerForCustomer(
|
|
|
|
|
return AppointmentFragmentTileWidget(
|
|
|
|
|
onTapped: () {
|
|
|
|
|
AppointmentListModel appointmentModel = appointmentsVM.myFilteredAppointments[index];
|
|
|
|
|
appointmentModel.appointmentServicesList!.forEach((service) {
|
|
|
|
|
@ -87,7 +88,7 @@ class AppointmentsFragment extends StatelessWidget {
|
|
|
|
|
navigateWithName(context, AppRoutes.appointmentDetailView, arguments: appointmentModel);
|
|
|
|
|
},
|
|
|
|
|
appointmentListModel: appointmentsVM.myFilteredAppointments[index],
|
|
|
|
|
);
|
|
|
|
|
).margin(left: 21, right: 21);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|