|
|
|
|
@ -17,6 +17,7 @@ import 'package:hmg_patient_app_new/presentation/medical_report/widgets/patient_
|
|
|
|
|
import 'package:hmg_patient_app_new/theme/colors.dart';
|
|
|
|
|
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/common_bottom_sheet.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/widgets/loader/bottomsheet_loader.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/widgets/routes/custom_page_route.dart';
|
|
|
|
|
@ -251,46 +252,21 @@ class _MedicalReportsPageState extends State<MedicalReportsPage> {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 8.h),
|
|
|
|
|
Row(
|
|
|
|
|
Wrap(
|
|
|
|
|
alignment: WrapAlignment.start,
|
|
|
|
|
direction: Axis.horizontal,
|
|
|
|
|
spacing: 6.h,
|
|
|
|
|
runSpacing: 6.h,
|
|
|
|
|
children: [
|
|
|
|
|
CustomButton(
|
|
|
|
|
text: DateUtil.formatDateToDate(DateUtil.convertStringToDate(report.appointmentDate), false),
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
backgroundColor: AppColors.greyColor,
|
|
|
|
|
borderColor: AppColors.greyColor,
|
|
|
|
|
textColor: AppColors.blackColor,
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
borderRadius: 8,
|
|
|
|
|
padding: EdgeInsets.fromLTRB(10, 0, 10, 0),
|
|
|
|
|
height: 24.h,
|
|
|
|
|
AppCustomChipWidget(
|
|
|
|
|
labelText: DateUtil.formatDateToDate(DateUtil.convertStringToDate(report.appointmentDate), false),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(width: 8.h),
|
|
|
|
|
CustomButton(
|
|
|
|
|
text: medicalFileVM.isMedicalReportsSortByClinic ? report.projectName! : report.clinicDescription!,
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
backgroundColor: AppColors.greyColor,
|
|
|
|
|
borderColor: AppColors.greyColor,
|
|
|
|
|
textColor: AppColors.blackColor,
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
borderRadius: 8,
|
|
|
|
|
padding: EdgeInsets.fromLTRB(10, 0, 10, 0),
|
|
|
|
|
height: 24.h,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(width: 8.h),
|
|
|
|
|
CustomButton(
|
|
|
|
|
text: report.statusDesc!,
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
backgroundColor: AppColors.greyColor,
|
|
|
|
|
borderColor: AppColors.greyColor,
|
|
|
|
|
textColor: AppColors.blackColor,
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
|
borderRadius: 8,
|
|
|
|
|
padding: EdgeInsets.fromLTRB(10, 0, 10, 0),
|
|
|
|
|
height: 24.h,
|
|
|
|
|
AppCustomChipWidget(
|
|
|
|
|
labelText: medicalFileVM.isMedicalReportsSortByClinic ? report.projectName! : report.clinicDescription!,
|
|
|
|
|
),
|
|
|
|
|
report.statusDesc != null ? AppCustomChipWidget(
|
|
|
|
|
labelText: report.statusDesc ?? "test",
|
|
|
|
|
) : SizedBox.shrink(),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 8.h),
|
|
|
|
|
|