|
|
|
|
@ -15,6 +15,7 @@ import 'package:hmg_patient_app_new/widgets/appbar/collapsing_list_view.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/widgets/buttons/custom_button.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/widgets/chip/app_custom_chip_widget.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/widgets/routes/custom_page_route.dart';
|
|
|
|
|
import 'package:lottie/lottie.dart';
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
|
|
class AppointmentQueuePage extends StatelessWidget {
|
|
|
|
|
@ -32,13 +33,14 @@ class AppointmentQueuePage extends StatelessWidget {
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
child: CollapsingListView(
|
|
|
|
|
title: LocaleKeys.queueing.tr(context: context),
|
|
|
|
|
title: LocaleKeys.queueing.tr(context: context),
|
|
|
|
|
child: RefreshIndicator(
|
|
|
|
|
color: AppColors.primaryRedColor,
|
|
|
|
|
onRefresh: () async {
|
|
|
|
|
await myAppointmentsVM.getPatientAppointmentQueueDetails();
|
|
|
|
|
},
|
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
|
physics: const AlwaysScrollableScrollPhysics(),
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: EdgeInsets.all(24.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
@ -59,13 +61,21 @@ class AppointmentQueuePage extends StatelessWidget {
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
AppCustomChipWidget(
|
|
|
|
|
labelText: myAppointmentsVM.currentQueueStatus == 0 ? LocaleKeys.inQueue.tr(context: context) : LocaleKeys.yourTurn.tr(context: context),
|
|
|
|
|
backgroundColor: Utils.getCardBorderColor(myAppointmentsVM.currentQueueStatus).withValues(alpha: 0.20),
|
|
|
|
|
textColor: Utils.getCardBorderColor(myAppointmentsVM.currentQueueStatus),
|
|
|
|
|
),
|
|
|
|
|
Utils.buildSvgWithAssets(icon: AppAssets.waiting_icon, width: 24.h, height: 24.h),
|
|
|
|
|
Container(
|
|
|
|
|
decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
|
|
|
|
|
color: AppColors.greyColor,
|
|
|
|
|
borderRadius: 10.h,
|
|
|
|
|
hasShadow: false,
|
|
|
|
|
),
|
|
|
|
|
padding: EdgeInsets.all(6.h),
|
|
|
|
|
child: Lottie.asset(AppAnimations.hourGlass, repeat: true, reverse: false, frameRate: FrameRate(60), width: 40.h, height: 40.h, fit: BoxFit.fill)),
|
|
|
|
|
],
|
|
|
|
|
).toShimmer2(isShow: myAppointmentsVM.isAppointmentQueueDetailsLoading),
|
|
|
|
|
SizedBox(height: 10.h),
|
|
|
|
|
@ -189,9 +199,9 @@ class AppointmentQueuePage extends StatelessWidget {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
|
|
|
|
|
|