refactoring

This commit is contained in:
dahoud
2026-03-31 09:14:47 +00:00
parent 9bfffeeebe
commit 5383df6dcb
200 changed files with 11192 additions and 7063 deletions

View File

@@ -52,9 +52,9 @@ class SectionHeader extends StatelessWidget {
this.action,
this.icon,
}) : color = ColorTokens.primary,
fontSize = 20,
fontSize = 16,
style = SectionHeaderStyle.primary,
bottomSpacing = 16;
bottomSpacing = 10;
/// Constructeur pour un en-tête de section
const SectionHeader.section({
@@ -64,9 +64,9 @@ class SectionHeader extends StatelessWidget {
this.action,
this.icon,
}) : color = ColorTokens.primary,
fontSize = 16,
fontSize = 13,
style = SectionHeaderStyle.normal,
bottomSpacing = 12;
bottomSpacing = 8;
/// Constructeur pour un en-tête de sous-section
const SectionHeader.subsection({
@@ -106,7 +106,7 @@ class SectionHeader extends StatelessWidget {
final effectiveColor = color ?? ColorTokens.primary;
return Container(
padding: const EdgeInsets.all(SpacingTokens.lg),
padding: const EdgeInsets.all(10),
decoration: BoxDecoration(
gradient: LinearGradient(
colors: [
@@ -117,21 +117,20 @@ class SectionHeader extends StatelessWidget {
end: Alignment.bottomRight,
),
borderRadius: BorderRadius.circular(SpacingTokens.radiusLg),
boxShadow: ShadowTokens.primary,
),
child: Row(
children: [
if (icon != null) ...[
Container(
padding: const EdgeInsets.all(8),
padding: const EdgeInsets.all(6),
decoration: BoxDecoration(
color: Colors.white.withOpacity(0.2),
borderRadius: BorderRadius.circular(8),
borderRadius: BorderRadius.circular(6),
),
child: Icon(
icon,
color: Colors.white,
size: 20,
size: 16,
),
),
const SizedBox(width: 12),
@@ -143,7 +142,7 @@ class SectionHeader extends StatelessWidget {
Text(
title,
style: TextStyle(
fontSize: fontSize ?? 20,
fontSize: fontSize ?? 16,
fontWeight: FontWeight.bold,
color: Colors.white,
),
@@ -186,7 +185,7 @@ class SectionHeader extends StatelessWidget {
Text(
title,
style: TextStyle(
fontSize: fontSize ?? 16,
fontSize: fontSize ?? 13,
fontWeight: FontWeight.bold,
color: color ?? ColorTokens.primary,
),
@@ -239,17 +238,10 @@ class SectionHeader extends StatelessWidget {
/// En-tête avec fond de carte
Widget _buildCardHeader() {
return Container(
padding: const EdgeInsets.all(12),
padding: const EdgeInsets.all(10),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(8),
boxShadow: [
BoxShadow(
color: Colors.black.withOpacity(0.05),
blurRadius: 4,
offset: const Offset(0, 2),
),
],
),
child: Row(
children: [
@@ -268,7 +260,7 @@ class SectionHeader extends StatelessWidget {
Text(
title,
style: TextStyle(
fontSize: fontSize ?? 16,
fontSize: fontSize ?? 13,
fontWeight: FontWeight.bold,
color: color ?? ColorTokens.primary,
),