console working
deleted: "Svrnty_norms_guide/Images/Capture d\342\200\231\303\251cran, le 2025-10-25 \303\240 10.15.39.png" deleted: "images/Capture d\342\200\231\303\251cran, le 2025-10-25 \303\240 13.30.24.png" modified: lib/console_landing_page.dart
This commit is contained in:
parent
e20ea43a85
commit
8a12b7e1da
Binary file not shown.
|
Before Width: | Height: | Size: 138 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 306 KiB |
@ -336,39 +336,37 @@ class _ConsoleLandingPageState extends State<ConsoleLandingPage> {
|
||||
// Helper method: Build responsive grid
|
||||
Widget _buildResponsiveGrid(double width, List<Widget> 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(
|
||||
return GridView.builder(
|
||||
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
||||
crossAxisCount: crossAxisCount,
|
||||
childAspectRatio: childAspectRatio,
|
||||
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<ConsoleLandingPage> {
|
||||
),
|
||||
),
|
||||
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<ConsoleLandingPage> {
|
||||
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<ConsoleLandingPage> {
|
||||
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<ConsoleLandingPage> {
|
||||
),
|
||||
],
|
||||
),
|
||||
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,
|
||||
),
|
||||
),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user