You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
77 lines
3.2 KiB
Dart
77 lines
3.2 KiB
Dart
|
8 months ago
|
import 'package:flutter/material.dart';
|
||
|
|
import 'package:hmg_patient_app_new/core/app_assets.dart';
|
||
|
|
import 'package:hmg_patient_app_new/core/utils/size_utils.dart';
|
||
|
|
import 'package:hmg_patient_app_new/extensions/string_extensions.dart';
|
||
|
|
import 'package:hmg_patient_app_new/extensions/widget_extensions.dart';
|
||
|
|
import 'package:hmg_patient_app_new/features/radiology/models/resp_models/patient_radiology_response_model.dart';
|
||
|
|
import 'package:hmg_patient_app_new/generated/locale_keys.g.dart';
|
||
|
|
import 'package:hmg_patient_app_new/presentation/lab/collapsing_list_view.dart';
|
||
|
|
import 'package:hmg_patient_app_new/theme/colors.dart';
|
||
|
|
import 'package:hmg_patient_app_new/widgets/buttons/custom_button.dart';
|
||
|
|
|
||
|
|
class RadiologyResultPage extends StatefulWidget {
|
||
|
|
RadiologyResultPage({super.key, required this.patientRadiologyResponseModel});
|
||
|
|
|
||
|
|
PatientRadiologyResponseModel patientRadiologyResponseModel;
|
||
|
|
|
||
|
|
@override
|
||
|
|
State<RadiologyResultPage> createState() => _RadiologyResultPageState();
|
||
|
|
}
|
||
|
|
|
||
|
|
class _RadiologyResultPageState extends State<RadiologyResultPage> {
|
||
|
|
@override
|
||
|
|
Widget build(BuildContext context) {
|
||
|
|
return Scaffold(
|
||
|
|
backgroundColor: AppColors.bgScaffoldColor,
|
||
|
|
body: CollapsingListView(
|
||
|
|
title: "Radiology Result".needTranslation,
|
||
|
|
child: SingleChildScrollView(
|
||
|
|
child: Padding(
|
||
|
|
padding: EdgeInsets.symmetric(horizontal: 24.h),
|
||
|
|
child: Column(
|
||
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||
|
|
children: [
|
||
|
|
SizedBox(height: 24.h),
|
||
|
|
Container(
|
||
|
|
decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
|
||
|
|
color: AppColors.whiteColor,
|
||
|
|
borderRadius: 20.h,
|
||
|
|
hasShadow: true,
|
||
|
|
),
|
||
|
|
child: Column(
|
||
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||
|
|
children: [
|
||
|
|
SizedBox(height: 16.h),
|
||
|
|
widget.patientRadiologyResponseModel.description!.toText16(isBold: true),
|
||
|
|
SizedBox(height: 8.h),
|
||
|
|
widget.patientRadiologyResponseModel.reportData!.trim().toText12(isBold: true, color: AppColors.textColorLight),
|
||
|
|
SizedBox(height: 16.h),
|
||
|
|
CustomButton(
|
||
|
|
text: "View Radiology Image".needTranslation,
|
||
|
|
onPressed: () async {},
|
||
|
|
backgroundColor: AppColors.primaryRedColor,
|
||
|
|
borderColor: AppColors.primaryRedColor,
|
||
|
|
textColor: AppColors.whiteColor,
|
||
|
|
fontSize: 14,
|
||
|
|
fontWeight: FontWeight.w500,
|
||
|
|
borderRadius: 12,
|
||
|
|
padding: EdgeInsets.fromLTRB(10, 0, 10, 0),
|
||
|
|
height: 40.h,
|
||
|
|
icon: AppAssets.calendar,
|
||
|
|
iconColor: AppColors.whiteColor,
|
||
|
|
iconSize: 20.h,
|
||
|
|
),
|
||
|
|
SizedBox(height: 16.h),
|
||
|
|
],
|
||
|
|
).paddingSymmetrical(16.h, 0.h),
|
||
|
|
),
|
||
|
|
SizedBox(height: 24.h),
|
||
|
|
],
|
||
|
|
),
|
||
|
|
),
|
||
|
|
),
|
||
|
|
),
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|