profile settings update

pull/67/head
haroon amjad 1 month ago
parent 6565ba719d
commit 2de02102c2

@ -13,10 +13,10 @@ import 'package:hmg_patient_app_new/features/lab/history/lab_history_viewmodel.d
import 'package:hmg_patient_app_new/features/lab/lab_range_view_model.dart' show LabRangeViewModel;
import 'package:hmg_patient_app_new/features/lab/lab_view_model.dart';
import 'package:hmg_patient_app_new/features/lab/models/resp_models/lab_result.dart';
import 'package:hmg_patient_app_new/presentation/lab/collapsing_list_view.dart';
import 'package:hmg_patient_app_new/presentation/lab/lab_results/lab_result_calender.dart';
import 'package:hmg_patient_app_new/presentation/lab/lab_results/lab_result_list_item.dart';
import 'package:hmg_patient_app_new/theme/colors.dart' show AppColors;
import 'package:hmg_patient_app_new/widgets/appbar/collapsing_list_view.dart';
import 'package:hmg_patient_app_new/widgets/graph/custom_graph.dart';
import 'package:provider/provider.dart' show Consumer, Provider;

@ -322,7 +322,21 @@ class FamilyCardWidget extends StatelessWidget {
],
).paddingOnly(top: 16, right: 16, left: 16, bottom: 12).expanded,
1.divider,
CustomButton(icon: AppAssets.add_family, text: "Add a new family member".needTranslation, height: 40.h, fontSize: 14, onPressed: () {}).paddingOnly(top: 12, right: 16, left: 16, bottom: 16),
//TODO: Add family file switch logic here
isRootUser
? CustomButton(icon: AppAssets.add_family, text: "Add a new family member".needTranslation, height: 40.h, fontSize: 14, onPressed: () {})
.paddingOnly(top: 12, right: 16, left: 16, bottom: 16)
: CustomButton(
icon: AppAssets.add_family,
backgroundColor: AppColors.secondaryLightRedColor,
borderColor: AppColors.secondaryLightRedColor,
textColor: AppColors.primaryRedColor,
iconColor: AppColors.primaryRedColor,
text: "Switch to this medical file".needTranslation,
height: 40.h,
fontSize: 14,
onPressed: () {})
.paddingOnly(top: 12, right: 16, left: 16, bottom: 16),
],
),
);

Loading…
Cancel
Save