import 'package:flutter/material.dart'; import 'package:ftc_mobile_app/ftc_mobile_app.dart'; import 'package:ftc_mobile_app/view/custom_widgets/common_cancel_button.dart'; import 'package:ftc_mobile_app/view/custom_widgets/label_value_box_widget.dart'; class HolidaysDataDialog extends StatelessWidget { const HolidaysDataDialog({ super.key, required this.holidayModel, }); final HolidayModel holidayModel; @override Widget build(BuildContext context) { return AlertDialog( insetPadding: REdgeInsets.all(18), surfaceTintColor: CustomAppColors.kPrimaryColor, shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(2)), backgroundColor: CustomAppColors.kWhiteColor, title: Center( child: CustomTextWidget( text: 'Your Holidays', fontWeight: FontWeight.w700, isExpanded: false, alignment: Alignment.center, fontSize: 16.sp, ), ), content: Column( crossAxisAlignment: CrossAxisAlignment.start, mainAxisSize: MainAxisSize.min, children: [ LabelValueBoxWidget( label: 'Carried Over:', value: holidayModel.carriedOver, borderColor: CustomAppColors.kLightGreyColor.withOpacity(0.3), ), 10.verticalSpace, LabelValueBoxWidget( label: 'Holiday Entitlement', value: holidayModel.holidayEntitlement, borderColor: CustomAppColors.kLightGreyColor.withOpacity(0.3), ), 10.verticalSpace, LabelValueBoxWidget( label: 'Holiday Allowance', value: holidayModel.holidayAllowance, borderColor: CustomAppColors.kLightGreyColor.withOpacity(0.3), ), 10.verticalSpace, LabelValueBoxWidget( label: 'Your remaining Holidays', value: holidayModel.remainingHolidays, borderColor: CustomAppColors.kLightGreyColor.withOpacity(0.3), ), 10.verticalSpace, LabelValueBoxWidget( label: 'Time left before Year End:', value: holidayModel.timeLeftBeforeYearEnd, borderColor: CustomAppColors.kLightGreyColor.withOpacity(0.3), ), 10.verticalSpace, const CommonCloseTextButton() ], ), ); } }