|
|
|
|
@ -1,3 +1,4 @@
|
|
|
|
|
import 'package:easy_localization/easy_localization.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/core/app_assets.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/core/enums.dart';
|
|
|
|
|
@ -5,8 +6,10 @@ import 'package:hmg_patient_app_new/core/utils/size_utils.dart';
|
|
|
|
|
import 'package:hmg_patient_app_new/core/utils/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/generated/locale_keys.g.dart';
|
|
|
|
|
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';
|
|
|
|
|
|
|
|
|
|
class HealthCalculatorResultPage extends StatelessWidget {
|
|
|
|
|
HealthCalculatorsTypeEnum calculatorType;
|
|
|
|
|
@ -18,6 +21,19 @@ class HealthCalculatorResultPage extends StatelessWidget {
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return CollapsingListView(
|
|
|
|
|
title: "Your ${calculatorType.name.toCamelCase}",
|
|
|
|
|
bottomChild: Container(
|
|
|
|
|
decoration: RoundedRectangleBorder().toSmoothCornerDecoration(color: AppColors.whiteColor, customBorder: BorderRadius.only(topLeft: Radius.circular(24.r), topRight: Radius.circular(24.r))),
|
|
|
|
|
padding: EdgeInsets.symmetric(vertical: 20.h, horizontal: 20.h),
|
|
|
|
|
child: CustomButton(
|
|
|
|
|
text: LocaleKeys.bookAppo.tr(),
|
|
|
|
|
onPressed: () {},
|
|
|
|
|
icon: null,
|
|
|
|
|
fontSize: 16.f,
|
|
|
|
|
backgroundColor: AppColors.primaryRedColor,
|
|
|
|
|
borderColor: AppColors.primaryRedColor,
|
|
|
|
|
borderRadius: 12.r,
|
|
|
|
|
fontWeight: FontWeight.w500),
|
|
|
|
|
),
|
|
|
|
|
child: getCalculatorResultWidget(type: calculatorType, calculatedResult: calculatedResult).paddingSymmetrical(18.w, 24.h),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|