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 HolidayRequestSentDialog extends StatelessWidget { const HolidayRequestSentDialog({ super.key, required this.holidayStartDate, required this.holidayEndDate, required this.holidayTotalTime, }); final String holidayStartDate; final String holidayEndDate; final String holidayTotalTime; @override Widget build(BuildContext context) { return AlertDialog( insetPadding: REdgeInsets.all(18), shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(2.r)), backgroundColor: Colors.white, surfaceTintColor: Colors.white, title: Center( child: CustomTextWidget( text: 'Your Holiday Request has been sent', fontWeight: FontWeight.bold, isExpanded: false, alignment: Alignment.center, fontSize: 16.sp, ), ), content: Column( crossAxisAlignment: CrossAxisAlignment.start, mainAxisSize: MainAxisSize.min, children: [ Row( children: [ Expanded( flex: 1, child: LabelValueBoxWidget( label: 'Start Date:', value: holidayStartDate, borderColor: CustomAppColors.kLightGreyColor.withOpacity(0.3), )), 5.horizontalSpace, Expanded( flex: 1, child: LabelValueBoxWidget( label: 'End Date', value: holidayEndDate, borderColor: CustomAppColors.kLightGreyColor.withOpacity(0.3), )), ], ), 10.verticalSpace, SizedBox( width: MediaQuery.of(context).size.width, child: LabelValueBoxWidget( label: 'Your remaining Holidays', value: holidayTotalTime, borderColor: CustomAppColors.kLightGreyColor.withOpacity(0.3), )), 10.verticalSpace, const CustomTextWidget( text: "Kindly wait as we review your holiday request.") ], ), actions: const [CommonCloseTextButton()], ); } }