Compare commits

..

No commits in common. '4f6dbb79cd899e84cababb5d69856a041b92e896' and '3dd4665f6e785939de18eb58c2eee0129c0492f6' have entirely different histories.

@ -210,8 +210,8 @@ class ApiClientImp implements ApiClient {
body['TokenID'] = "@dm!n"; body['TokenID'] = "@dm!n";
} }
// body['TokenID'] = "@dm!n"; body['TokenID'] = "@dm!n";
// body['PatientID'] = 4769748; // body['PatientID'] = 255375;
// body['PatientID'] = 89754444; // body['PatientID'] = 89754444;
// body['PatientTypeID'] = 1; // body['PatientTypeID'] = 1;
// body['PatientOutSA'] = 0; // body['PatientOutSA'] = 0;

@ -588,12 +588,7 @@ class MyAppointmentsViewModel extends ChangeNotifier {
final result = await myAppointmentsRepo.confirmAppointment(patientAppointmentHistoryResponseModel: patientAppointmentHistoryResponseModel); final result = await myAppointmentsRepo.confirmAppointment(patientAppointmentHistoryResponseModel: patientAppointmentHistoryResponseModel);
result.fold( result.fold(
// (failure) async => await errorHandlerService.handleError(failure: failure), (failure) async => await errorHandlerService.handleError(failure: failure),
(failure) async {
if(onError != null) {
onError(failure.message);
}
},
(apiResponse) { (apiResponse) {
if (apiResponse.messageStatus == 2) { if (apiResponse.messageStatus == 2) {
onError!(apiResponse.errorMessage!); onError!(apiResponse.errorMessage!);

@ -1216,16 +1216,6 @@ class _AppointmentDetailsPageState extends State<AppointmentDetailsPage> {
isDismissible: false, isDismissible: false,
isFullScreen: false, isFullScreen: false,
isSuccessDialog: true); isSuccessDialog: true);
},
onError: (err) {
LoaderBottomSheet.hideLoader();
showCommonBottomSheetWithoutHeight(
context,
child: Utils.getErrorWidget(loadingText: err),
callBackFunc: () {},
isFullScreen: false,
isCloseButtonVisible: true,
);
}); });
// LoaderBottomSheet.hideLoader(); // LoaderBottomSheet.hideLoader();
case 15: case 15:

@ -232,8 +232,8 @@ class _AppointmentPaymentPageState extends State<AppointmentPaymentPage> {
"0", "0",
widget.patientAppointmentHistoryResponseModel.isLiveCareAppointment! ? "true" : "false", widget.patientAppointmentHistoryResponseModel.isLiveCareAppointment! ? "true" : "false",
widget.patientAppointmentHistoryResponseModel.appointmentDate!, widget.patientAppointmentHistoryResponseModel.appointmentDate!,
widget.patientAppointmentHistoryResponseModel.appointmentNo.toString(), widget.patientAppointmentHistoryResponseModel.appointmentNo!,
widget.patientAppointmentHistoryResponseModel.doctorID.toString(), widget.patientAppointmentHistoryResponseModel.doctorID!,
transactionID: transID, transactionID: transID,
fileNumber: appState.getAuthenticatedUser()!.patientId.toString(), fileNumber: appState.getAuthenticatedUser()!.patientId.toString(),
orderDescription: "Appointment Payment", orderDescription: "Appointment Payment",
@ -455,8 +455,8 @@ class _AppointmentPaymentPageState extends State<AppointmentPaymentPage> {
"0", "0",
widget.patientAppointmentHistoryResponseModel.isLiveCareAppointment! ? "true" : "false", widget.patientAppointmentHistoryResponseModel.isLiveCareAppointment! ? "true" : "false",
widget.patientAppointmentHistoryResponseModel.appointmentDate!, widget.patientAppointmentHistoryResponseModel.appointmentDate!,
widget.patientAppointmentHistoryResponseModel.appointmentNo.toString(), widget.patientAppointmentHistoryResponseModel.appointmentNo!,
widget.patientAppointmentHistoryResponseModel.doctorID.toString(), widget.patientAppointmentHistoryResponseModel.doctorID!,
transactionID: transID, transactionID: transID,
fileNumber: appState.getAuthenticatedUser()!.patientId.toString(), fileNumber: appState.getAuthenticatedUser()!.patientId.toString(),
amount: myAppointmentsViewModel.patientAppointmentShareResponseModel!.patientShareWithTax!.toString(), amount: myAppointmentsViewModel.patientAppointmentShareResponseModel!.patientShareWithTax!.toString(),

@ -57,12 +57,9 @@ class SelectGenderWidget extends StatelessWidget {
), ),
], ],
).paddingSymmetrical(16.h, 16.h).onPress(() { ).paddingSymmetrical(16.h, 16.h).onPress(() {
final genderValue = final genderValue = isArabic
// isArabic ? GenderTypeEnum.values[index].typeAr
// ? GenderTypeEnum.values[index].typeAr : GenderTypeEnum.values[index].type;
// :
GenderTypeEnum.values[index].type;
bloodDonationViewModel.onGenderChange(genderValue); bloodDonationViewModel.onGenderChange(genderValue);
Navigator.of(context).pop(); Navigator.of(context).pop();
})); }));

@ -448,31 +448,31 @@ class _LandingPageState extends State<LandingPage> {
: SizedBox.shrink(), : SizedBox.shrink(),
// Offers And Discounts Carousel - Auto-scrolling from right to left // Offers And Discounts Carousel - Auto-scrolling from right to left
// appState.isAuthenticated && appState.isEnabledOffersAndDiscountsCarousel appState.isAuthenticated && appState.isEnabledOffersAndDiscountsCarousel
// ? Column( ? Column(
// children: [ children: [
// SizedBox(height: 12.h), SizedBox(height: 12.h),
// Row( Row(
// mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
// children: [ children: [
// ("${LocaleKeys.offers.tr(context: context)} & ${LocaleKeys.discount.tr(context: context)}").toText16(isBold: true), ("${LocaleKeys.offers.tr(context: context)} & ${LocaleKeys.discount.tr(context: context)}").toText16(isBold: true),
// Row( Row(
// children: [ children: [
// LocaleKeys.viewAll.tr(context: context).toText14(color: AppColors.primaryRedColor, isBold: true), LocaleKeys.viewAll.tr(context: context).toText14(color: AppColors.primaryRedColor, isBold: true),
// SizedBox(width: 2.h), SizedBox(width: 2.h),
// Icon(Icons.arrow_forward_ios, color: AppColors.primaryRedColor, size: 14.h), Icon(Icons.arrow_forward_ios, color: AppColors.primaryRedColor, size: 14.h),
// ], ],
// ), ),
// ], ],
// ).paddingSymmetrical(24.h, 0.h).onPress(() { ).paddingSymmetrical(24.h, 0.h).onPress(() {
// Navigator.of(context).push(CustomPageRoute(page: OffersAndDiscountsPage())); Navigator.of(context).push(CustomPageRoute(page: OffersAndDiscountsPage()));
// }), }),
// SizedBox(height: 16.h), SizedBox(height: 16.h),
// OffersAndDiscountsCarousel().paddingSymmetrical(24.h, 0.h), OffersAndDiscountsCarousel().paddingSymmetrical(24.h, 0.h),
// SizedBox(height: 18.h), SizedBox(height: 18.h),
// ], ],
// ) )
// : SizedBox.shrink(), : SizedBox.shrink(),
appState.isAuthenticated appState.isAuthenticated
? Column( ? Column(
@ -516,7 +516,7 @@ class _LandingPageState extends State<LandingPage> {
), ),
).paddingSymmetrical(24.h, 16.h) ).paddingSymmetrical(24.h, 16.h)
: myAppointmentsVM.patientAppointmentsHistoryList.isNotEmpty : myAppointmentsVM.patientAppointmentsHistoryList.isNotEmpty
? myAppointmentsVM.patientAppointmentsHistoryList.length == 1 && !immediateLiveCareVM.patientHasPendingLiveCareRequest ? myAppointmentsVM.patientAppointmentsHistoryList.length == 1
? Container( ? Container(
decoration: RoundedRectangleBorder().toSmoothCornerDecoration( decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
color: AppColors.whiteColor, color: AppColors.whiteColor,
@ -536,11 +536,9 @@ class _LandingPageState extends State<LandingPage> {
height: isTablet ? 290.h : 255.h, height: isTablet ? 290.h : 255.h,
child: ListView.separated( child: ListView.separated(
scrollDirection: Axis.horizontal, scrollDirection: Axis.horizontal,
itemCount: () { itemCount: myAppointmentsVM.patientAppointmentsHistoryList.length < 3
final int baseCount = ? myAppointmentsVM.patientAppointmentsHistoryList.length
myAppointmentsVM.patientAppointmentsHistoryList.length + (immediateLiveCareVM.patientHasPendingLiveCareRequest ? 1 : 0); : 3,
return baseCount < 3 ? baseCount : 3;
}(),
shrinkWrap: true, shrinkWrap: true,
padding: EdgeInsets.only(left: 16.h, right: 16.h), padding: EdgeInsets.only(left: 16.h, right: 16.h),
itemBuilder: (context, index) { itemBuilder: (context, index) {
@ -573,14 +571,10 @@ class _LandingPageState extends State<LandingPage> {
height: 255.h + 20 + 30, // itemHeight + shadow padding (10 top + 10 bottom) + pagination dots space height: 255.h + 20 + 30, // itemHeight + shadow padding (10 top + 10 bottom) + pagination dots space
child: Builder( child: Builder(
builder: (context) { builder: (context) {
final int baseAppointmentCount = myAppointmentsVM.patientAppointmentsHistoryList.length;
final int liveCareCount = immediateLiveCareVM.patientHasPendingLiveCareRequest ? 1 : 0;
final int totalCount = baseAppointmentCount + liveCareCount;
final int swiperItemCount = myAppointmentsVM.isMyAppointmentsLoading final int swiperItemCount = myAppointmentsVM.isMyAppointmentsLoading
? 3 ? 3
: totalCount < 3 : myAppointmentsVM.patientAppointmentsHistoryList.length < 3
? totalCount ? myAppointmentsVM.patientAppointmentsHistoryList.length
: 3; : 3;
final bool isArabic = appState.isArabic(); final bool isArabic = appState.isArabic();
return Swiper( return Swiper(

Loading…
Cancel
Save