feat: Début des évolutions interfaces mobiles v3.2.4
- Préparation de la nouvelle branche pour les évolutions - Mise à jour de la version vers 3.2.4 - Intégration des modifications en cours 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -403,4 +403,16 @@ class AppTheme {
|
||||
labelSmall: TextStyle(fontFamily: 'Figtree', color: textColor.withValues(alpha: 0.7), fontSize: 11),
|
||||
);
|
||||
}
|
||||
|
||||
/// Helper pour obtenir des espacements responsives
|
||||
static double getResponsiveSpacing(double screenWidth, double baseSpacing) {
|
||||
final scaleFactor = getFontScaleFactor(screenWidth);
|
||||
return baseSpacing * scaleFactor;
|
||||
}
|
||||
|
||||
/// Helper court pour espacements responsives
|
||||
static double s(BuildContext context, double baseSpacing) {
|
||||
final width = MediaQuery.of(context).size.width;
|
||||
return getResponsiveSpacing(width, baseSpacing);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user