|
|
|
@ -418,7 +418,8 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
|
|
|
|
return ConstrainedBox(
|
|
|
|
return ConstrainedBox(
|
|
|
|
constraints: BoxConstraints(
|
|
|
|
constraints: BoxConstraints(
|
|
|
|
minHeight: 135.h,
|
|
|
|
minHeight: 135.h,
|
|
|
|
maxHeight: isFoldable ? 160.h : (isTablet ? 165.h : 135.h),
|
|
|
|
maxHeight: 150.h,
|
|
|
|
|
|
|
|
// maxHeight: isFoldable ? 150.h : (isTablet ? 140.h : 140.h),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: PageView(
|
|
|
|
child: PageView(
|
|
|
|
controller: hmgServicesVM.vitalSignPageController,
|
|
|
|
controller: hmgServicesVM.vitalSignPageController,
|
|
|
|
@ -628,6 +629,7 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
|
|
|
|
crossAxisCount: 3,
|
|
|
|
crossAxisCount: 3,
|
|
|
|
crossAxisSpacing: 10.h,
|
|
|
|
crossAxisSpacing: 10.h,
|
|
|
|
mainAxisSpacing: 16.w,
|
|
|
|
mainAxisSpacing: 16.w,
|
|
|
|
|
|
|
|
childAspectRatio: isFoldable ? 1.2 : (isTablet ? 1.4 : 0.98),
|
|
|
|
// mainAxisExtent: 120.h,
|
|
|
|
// mainAxisExtent: 120.h,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
@ -719,7 +721,7 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
|
|
|
|
return ConstrainedBox(
|
|
|
|
return ConstrainedBox(
|
|
|
|
constraints: BoxConstraints(
|
|
|
|
constraints: BoxConstraints(
|
|
|
|
minHeight: 150.h,
|
|
|
|
minHeight: 150.h,
|
|
|
|
maxHeight: isFoldable ? 230.h : (isTablet ? 240.h : 180.h),
|
|
|
|
maxHeight: isFoldable ? 210.h : (isTablet ? 200.h : 180.h),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: myAppointmentsVM.isMyAppointmentsLoading
|
|
|
|
child: myAppointmentsVM.isMyAppointmentsLoading
|
|
|
|
? MedicalFileAppointmentCard(
|
|
|
|
? MedicalFileAppointmentCard(
|
|
|
|
@ -1173,7 +1175,7 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
|
|
|
|
GridView(
|
|
|
|
GridView(
|
|
|
|
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
|
|
|
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
|
|
|
crossAxisCount: 3,
|
|
|
|
crossAxisCount: 3,
|
|
|
|
childAspectRatio: 1,
|
|
|
|
childAspectRatio: isFoldable ? 1.2 : (isTablet ? 1.4 : 0.98),
|
|
|
|
crossAxisSpacing: 10.h,
|
|
|
|
crossAxisSpacing: 10.h,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
@ -1277,10 +1279,10 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
|
|
|
|
context,
|
|
|
|
context,
|
|
|
|
noDataText: LocaleKeys.youDontHaveAnySickLeavesYet.tr(context: context),
|
|
|
|
noDataText: LocaleKeys.youDontHaveAnySickLeavesYet.tr(context: context),
|
|
|
|
isSmallWidget: true,
|
|
|
|
isSmallWidget: true,
|
|
|
|
width: 62.w,
|
|
|
|
width: 62.h,
|
|
|
|
height: 62.h,
|
|
|
|
height: 62.h,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
).paddingSymmetrical(0.w, 0.h);
|
|
|
|
);
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
SizedBox(height: 16.h),
|
|
|
|
SizedBox(height: 16.h),
|
|
|
|
Selector<MedicalFileViewModel,
|
|
|
|
Selector<MedicalFileViewModel,
|
|
|
|
@ -1308,6 +1310,7 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
|
|
|
|
crossAxisCount: 3,
|
|
|
|
crossAxisCount: 3,
|
|
|
|
crossAxisSpacing: 10.h,
|
|
|
|
crossAxisSpacing: 10.h,
|
|
|
|
mainAxisSpacing: 16.w,
|
|
|
|
mainAxisSpacing: 16.w,
|
|
|
|
|
|
|
|
childAspectRatio: isFoldable ? 1.2 : (isTablet ? 1.4 : 0.98),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
physics: NeverScrollableScrollPhysics(),
|
|
|
|
padding: EdgeInsets.only(top: 12.h),
|
|
|
|
padding: EdgeInsets.only(top: 12.h),
|
|
|
|
@ -1625,7 +1628,7 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Utils.buildSvgWithAssets(
|
|
|
|
child: Utils.buildSvgWithAssets(
|
|
|
|
icon: icon,
|
|
|
|
icon: icon,
|
|
|
|
width: 22.w,
|
|
|
|
width: 22.h,
|
|
|
|
height: 22.h,
|
|
|
|
height: 22.h,
|
|
|
|
iconColor: scheme.iconFg,
|
|
|
|
iconColor: scheme.iconFg,
|
|
|
|
fit: BoxFit.contain,
|
|
|
|
fit: BoxFit.contain,
|
|
|
|
@ -1642,7 +1645,8 @@ class _MedicalFilePageState extends State<MedicalFilePage> {
|
|
|
|
icon: getIt.get<AppState>().isArabic() ? AppAssets.arrow_back : AppAssets.arrow_forward, width: 18.w, height: 18.h),
|
|
|
|
icon: getIt.get<AppState>().isArabic() ? AppAssets.arrow_back : AppAssets.arrow_forward, width: 18.w, height: 18.h),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(height: 14.h),
|
|
|
|
Spacer(),
|
|
|
|
|
|
|
|
// SizedBox(height: 14.h),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 6.w, vertical: 6.h),
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 6.w, vertical: 6.h),
|
|
|
|
decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
|
|
|
|
decoration: RoundedRectangleBorder().toSmoothCornerDecoration(
|
|
|
|
|