|
|
|
|
@ -54,7 +54,10 @@ class _FamilyCardsState extends State<FamilyCards> {
|
|
|
|
|
children: [
|
|
|
|
|
Utils.buildSvgWithAssets(icon: AppAssets.alertSquare),
|
|
|
|
|
SizedBox(width: 8.h),
|
|
|
|
|
"Who can view my medical file ?".needTranslation.toText14(color: AppColors.textColor, isUnderLine: true, weight: FontWeight.w500).onPress(() {
|
|
|
|
|
"Who can view my medical file ?"
|
|
|
|
|
.needTranslation
|
|
|
|
|
.toText14(color: AppColors.textColor, isUnderLine: true, weight: FontWeight.w500)
|
|
|
|
|
.onPress(() {
|
|
|
|
|
dialogService.showFamilyBottomSheetWithoutHWithChild(
|
|
|
|
|
label: "Manage Family".needTranslation,
|
|
|
|
|
message: "",
|
|
|
|
|
@ -110,10 +113,17 @@ class _FamilyCardsState extends State<FamilyCards> {
|
|
|
|
|
? AppColors.textGreenColor
|
|
|
|
|
: AppColors.alertColor),
|
|
|
|
|
SizedBox(height: 8.h),
|
|
|
|
|
Wrap(alignment: WrapAlignment.start, crossAxisAlignment: WrapCrossAlignment.start, runAlignment: WrapAlignment.start, spacing: 0.h, children: [
|
|
|
|
|
Wrap(
|
|
|
|
|
alignment: WrapAlignment.start,
|
|
|
|
|
crossAxisAlignment: WrapCrossAlignment.start,
|
|
|
|
|
runAlignment: WrapAlignment.start,
|
|
|
|
|
spacing: 0.h,
|
|
|
|
|
children: [
|
|
|
|
|
(profile.patientName ?? "").toText14(isBold: false, isCenter: false, maxlines: 1, weight: FontWeight.w600),
|
|
|
|
|
(getStatusTextByRequest(FamilyFileEnum.values.firstWhere((e) => e.toInt == profile.status), profile.isRequestFromMySide ?? false))
|
|
|
|
|
.toText12(isBold: false, isCenter: false, maxLine: 1, fontWeight: FontWeight.w500, color: AppColors.greyTextColor),
|
|
|
|
|
(getStatusTextByRequest(
|
|
|
|
|
FamilyFileEnum.values.firstWhere((e) => e.toInt == profile.status), profile.isRequestFromMySide ?? false))
|
|
|
|
|
.toText12(
|
|
|
|
|
isBold: false, isCenter: false, maxLine: 1, fontWeight: FontWeight.w500, color: AppColors.greyTextColor),
|
|
|
|
|
]),
|
|
|
|
|
SizedBox(height: 8.h),
|
|
|
|
|
CustomChipWidget(
|
|
|
|
|
@ -141,7 +151,7 @@ class _FamilyCardsState extends State<FamilyCards> {
|
|
|
|
|
itemCount: widget.profiles.length,
|
|
|
|
|
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
|
|
|
|
crossAxisCount: 2,
|
|
|
|
|
crossAxisSpacing: 10.h,
|
|
|
|
|
crossAxisSpacing: 10.w,
|
|
|
|
|
mainAxisSpacing: 10.h,
|
|
|
|
|
childAspectRatio: widget.isShowDetails ? 0.56.h : 0.65.h,
|
|
|
|
|
),
|
|
|
|
|
@ -168,7 +178,8 @@ class _FamilyCardsState extends State<FamilyCards> {
|
|
|
|
|
? ((profile.age ?? 0) < 7 ? AppAssets.babyBoyImg : AppAssets.male_img)
|
|
|
|
|
: (profile.age! < 7 ? AppAssets.babyGirlImg : AppAssets.femaleImg),
|
|
|
|
|
width: 72.h,
|
|
|
|
|
height: 70.h),
|
|
|
|
|
height: 70.h,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 8.h),
|
|
|
|
|
(profile.patientName ?? "Unknown").toText14(isBold: false, isCenter: true, maxlines: 1, weight: FontWeight.w600),
|
|
|
|
|
SizedBox(height: 8.h),
|
|
|
|
|
@ -282,7 +293,9 @@ class _FamilyCardsState extends State<FamilyCards> {
|
|
|
|
|
alignment: WrapAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
(profile.patientName ?? "").toText14(isBold: false, isCenter: true, maxlines: 1, weight: FontWeight.w600),
|
|
|
|
|
(getStatusTextByRequest(FamilyFileEnum.values.firstWhere((e) => e.toInt == profile.status), profile.isRequestFromMySide ?? false)).toText14(
|
|
|
|
|
(getStatusTextByRequest(
|
|
|
|
|
FamilyFileEnum.values.firstWhere((e) => e.toInt == profile.status), profile.isRequestFromMySide ?? false))
|
|
|
|
|
.toText14(
|
|
|
|
|
isBold: false,
|
|
|
|
|
isCenter: true,
|
|
|
|
|
maxlines: 1,
|
|
|
|
|
|