diff --git a/Svrnty_norms_guide/Images/Capture d’écran, le 2025-10-25 à 10.15.39.png b/Svrnty_norms_guide/Images/Capture d’écran, le 2025-10-25 à 10.15.39.png deleted file mode 100644 index 5c7e6dd..0000000 Binary files a/Svrnty_norms_guide/Images/Capture d’écran, le 2025-10-25 à 10.15.39.png and /dev/null differ diff --git a/images/Capture d’écran, le 2025-10-25 à 13.30.24.png b/images/Capture d’écran, le 2025-10-25 à 13.30.24.png deleted file mode 100644 index 8cc61d4..0000000 Binary files a/images/Capture d’écran, le 2025-10-25 à 13.30.24.png and /dev/null differ diff --git a/lib/console_landing_page.dart b/lib/console_landing_page.dart index 5956afb..cb995a2 100644 --- a/lib/console_landing_page.dart +++ b/lib/console_landing_page.dart @@ -336,39 +336,37 @@ class _ConsoleLandingPageState extends State { // Helper method: Build responsive grid Widget _buildResponsiveGrid(double width, List children) { int crossAxisCount; - double childAspectRatio; double spacing; if (width < 600) { // Mobile: 1 column crossAxisCount = 1; - childAspectRatio = 1.8; spacing = 12.0; } else if (width < 900) { // Tablet: 2 columns crossAxisCount = 2; - childAspectRatio = 1.3; spacing = 16.0; } else if (width < 1200) { // Small desktop: 3 columns crossAxisCount = 3; - childAspectRatio = 1.1; spacing = 20.0; } else { // Large desktop: 3 columns with more space crossAxisCount = 3; - childAspectRatio = 1.3; spacing = 24.0; } - return GridView.count( - crossAxisCount: crossAxisCount, - childAspectRatio: childAspectRatio, - crossAxisSpacing: spacing, - mainAxisSpacing: spacing, + return GridView.builder( + gridDelegate: SliverGridDelegateWithFixedCrossAxisCount( + crossAxisCount: crossAxisCount, + mainAxisExtent: 140, + crossAxisSpacing: spacing, + mainAxisSpacing: spacing, + ), + itemCount: children.length, shrinkWrap: true, physics: const NeverScrollableScrollPhysics(), - children: children, + itemBuilder: (context, index) => children[index], ); } @@ -428,7 +426,7 @@ class _ConsoleLandingPageState extends State { ), ), child: Padding( - padding: const EdgeInsets.all(12.0), + padding: const EdgeInsets.all(16.0), child: Column( crossAxisAlignment: CrossAxisAlignment.start, mainAxisSize: MainAxisSize.min, @@ -438,13 +436,13 @@ class _ConsoleLandingPageState extends State { children: [ GFAvatar( backgroundColor: color.withOpacity(0.3), - child: Icon(icon, size: 28, color: color), - radius: 26, + child: Icon(icon, size: 24, color: color), + radius: 22, shape: GFAvatarShape.standard, ), Container( - constraints: const BoxConstraints(minWidth: 100), - padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8), + constraints: const BoxConstraints(minWidth: 90), + padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 6), decoration: BoxDecoration( color: color, borderRadius: BorderRadius.circular(20), @@ -454,7 +452,7 @@ class _ConsoleLandingPageState extends State { status, style: const TextStyle( color: Colors.white, - fontSize: 12, + fontSize: 11, fontWeight: FontWeight.bold, letterSpacing: 0.5, ), @@ -463,21 +461,21 @@ class _ConsoleLandingPageState extends State { ), ], ), - const SizedBox(height: 16), + const SizedBox(height: 12), Text( title, style: TextStyle( - fontSize: 20, + fontSize: 18, fontWeight: FontWeight.bold, color: colorScheme.onSurface, letterSpacing: 0.3, ), ), - const SizedBox(height: 6), + const SizedBox(height: 4), Text( subtitle, style: TextStyle( - fontSize: 14, + fontSize: 13, color: colorScheme.onSurfaceVariant, ), ),