From c1f2471e772545cba482f24249060d9295e8ae81 Mon Sep 17 00:00:00 2001 From: Yasien Mac Mini Date: Tue, 20 May 2025 10:41:54 +0200 Subject: [PATCH 1/2] fix overflow issues --- .../about_mih/package_tools/mih_ attributes.dart | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Frontend/lib/mih_packages/about_mih/package_tools/mih_ attributes.dart b/Frontend/lib/mih_packages/about_mih/package_tools/mih_ attributes.dart index acb0fe9d..6d50e789 100644 --- a/Frontend/lib/mih_packages/about_mih/package_tools/mih_ attributes.dart +++ b/Frontend/lib/mih_packages/about_mih/package_tools/mih_ attributes.dart @@ -27,11 +27,14 @@ class _MihAttributesState extends State { verticalAlignment: TableCellVerticalAlignment.middle, child: Padding( padding: const EdgeInsets.only(bottom: 15.0), - child: Center( - child: Icon( - icon, - size: 125, - color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), + child: FittedBox( + child: Center( + child: Icon( + icon, + // size: 125, + color: + MzanziInnovationHub.of(context)!.theme.secondaryColor(), + ), ), ), ), @@ -39,10 +42,11 @@ class _MihAttributesState extends State { TableCell( verticalAlignment: TableCellVerticalAlignment.middle, child: Padding( - padding: const EdgeInsets.only(bottom: 15.0), + padding: const EdgeInsets.all(15.0), child: Center( child: Text( creator, + textAlign: TextAlign.center, style: const TextStyle( fontSize: 20, fontWeight: FontWeight.bold, From 6dde66a7a75782e9903e2c8791250f53ab3c26b2 Mon Sep 17 00:00:00 2001 From: Yasien Mac Mini Date: Tue, 20 May 2025 10:56:27 +0200 Subject: [PATCH 2/2] add row height --- .../package_tools/mih_ attributes.dart | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/Frontend/lib/mih_packages/about_mih/package_tools/mih_ attributes.dart b/Frontend/lib/mih_packages/about_mih/package_tools/mih_ attributes.dart index 6d50e789..eed5fedf 100644 --- a/Frontend/lib/mih_packages/about_mih/package_tools/mih_ attributes.dart +++ b/Frontend/lib/mih_packages/about_mih/package_tools/mih_ attributes.dart @@ -25,15 +25,18 @@ class _MihAttributesState extends State { children: [ TableCell( verticalAlignment: TableCellVerticalAlignment.middle, - child: Padding( - padding: const EdgeInsets.only(bottom: 15.0), - child: FittedBox( - child: Center( - child: Icon( - icon, - // size: 125, - color: - MzanziInnovationHub.of(context)!.theme.secondaryColor(), + child: SizedBox( + height: 150, + child: Padding( + padding: const EdgeInsets.only(bottom: 15.0), + child: FittedBox( + child: Center( + child: Icon( + icon, + // size: 125, + color: + MzanziInnovationHub.of(context)!.theme.secondaryColor(), + ), ), ), ),