|
|
|
|
@ -56,30 +56,35 @@ class HomeFragment extends StatelessWidget {
|
|
|
|
|
child: RefreshIndicator(
|
|
|
|
|
onRefresh: () async => await context.read<DashboardVM>().onRefresh(context),
|
|
|
|
|
child: ListView(
|
|
|
|
|
padding: EdgeInsets.zero,
|
|
|
|
|
children: [
|
|
|
|
|
10.height,
|
|
|
|
|
ViewAllWidget(
|
|
|
|
|
title: LocaleKeys.upcoming_appointment.tr(),
|
|
|
|
|
subTitle: LocaleKeys.view_all.tr(),
|
|
|
|
|
onSubtitleTapped: () {
|
|
|
|
|
context.read<DashboardVM>().onNavbarTapped(1);
|
|
|
|
|
}).horPaddingMain(),
|
|
|
|
|
// const AppointmentSliderWidget().horPaddingMain(),
|
|
|
|
|
CommonAppointmentSliderWidget(
|
|
|
|
|
onAppointmentClick: (AppointmentListModel value) {
|
|
|
|
|
navigateWithName(context, ProviderAppRoutes.appointmentDetailList, arguments: value);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
21.height,
|
|
|
|
|
ViewAllWidget(
|
|
|
|
|
title: LocaleKeys.myBranches.tr(),
|
|
|
|
|
subTitle: LocaleKeys.view_all.tr(),
|
|
|
|
|
onSubtitleTapped: () {
|
|
|
|
|
context.read<DashboardVM>().onNavbarTapped(0);
|
|
|
|
|
},
|
|
|
|
|
).horPaddingMain(),
|
|
|
|
|
const ServiceProviderWidget().horPaddingMain(),
|
|
|
|
|
|
|
|
|
|
Column(
|
|
|
|
|
children: [
|
|
|
|
|
10.height,
|
|
|
|
|
ViewAllWidget(
|
|
|
|
|
title: LocaleKeys.upcoming_appointment.tr(),
|
|
|
|
|
subTitle: LocaleKeys.view_all.tr(),
|
|
|
|
|
onSubtitleTapped: () {
|
|
|
|
|
context.read<DashboardVM>().onNavbarTapped(1);
|
|
|
|
|
}).horPaddingMain(),
|
|
|
|
|
// const AppointmentSliderWidget().horPaddingMain(),
|
|
|
|
|
CommonAppointmentSliderWidget(
|
|
|
|
|
onAppointmentClick: (AppointmentListModel value) {
|
|
|
|
|
navigateWithName(context, ProviderAppRoutes.appointmentDetailList, arguments: value);
|
|
|
|
|
},
|
|
|
|
|
).horPaddingMain(),
|
|
|
|
|
//margin: const EdgeInsets.only(bottom: 10, left: 21, right: 21),
|
|
|
|
|
24.height,
|
|
|
|
|
ViewAllWidget(
|
|
|
|
|
title: LocaleKeys.myBranches.tr(),
|
|
|
|
|
subTitle: LocaleKeys.view_all.tr(),
|
|
|
|
|
onSubtitleTapped: () {
|
|
|
|
|
context.read<DashboardVM>().onNavbarTapped(0);
|
|
|
|
|
},
|
|
|
|
|
).horPaddingMain(),
|
|
|
|
|
const ServiceProviderWidget().horPaddingMain(),
|
|
|
|
|
],
|
|
|
|
|
).toWhiteContainer(width: double.infinity),
|
|
|
|
|
Consumer(
|
|
|
|
|
builder: (BuildContext context, AdVM adVM, Widget? child) {
|
|
|
|
|
if (adVM.state == ViewState.busy) {
|
|
|
|
|
@ -134,7 +139,7 @@ class HomeFragment extends StatelessWidget {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
).toContainer(backgroundColor: Color(0xFFF8F8F8), padding: EdgeInsets.zero, margin: EdgeInsets.zero),
|
|
|
|
|
21.height,
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
|