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:
@@ -30,12 +30,12 @@ class AppKeys {
|
||||
static const int roleAdmin3 = 9;
|
||||
|
||||
// URLs API pour les différents environnements
|
||||
static const String baseApiUrlDev = 'https://dapp.geosector.fr/api';
|
||||
static const String baseApiUrlDev = 'https://app.geo.dev/api';
|
||||
static const String baseApiUrlRec = 'https://rapp.geosector.fr/api';
|
||||
static const String baseApiUrlProd = 'https://app.geosector.fr/api';
|
||||
|
||||
// Identifiants d'application pour les différents environnements
|
||||
static const String appIdentifierDev = 'dapp.geosector.fr';
|
||||
static const String appIdentifierDev = 'app.geo.dev';
|
||||
static const String appIdentifierRec = 'rapp.geosector.fr';
|
||||
static const String appIdentifierProd = 'app.geosector.fr';
|
||||
|
||||
@@ -85,7 +85,7 @@ class AppKeys {
|
||||
try {
|
||||
final String currentUrl = Uri.base.toString().toLowerCase();
|
||||
|
||||
if (currentUrl.contains('dapp.geosector.fr')) {
|
||||
if (currentUrl.contains('app.geo.dev')) {
|
||||
return mapboxApiKeyDev;
|
||||
} else if (currentUrl.contains('rapp.geosector.fr')) {
|
||||
return mapboxApiKeyRec;
|
||||
|
||||
@@ -150,7 +150,7 @@ class ApiService {
|
||||
|
||||
final currentUrl = html.window.location.href.toLowerCase();
|
||||
|
||||
if (currentUrl.contains('dapp.geosector.fr')) {
|
||||
if (currentUrl.contains('app.geo.dev')) {
|
||||
return 'DEV';
|
||||
} else if (currentUrl.contains('rapp.geosector.fr')) {
|
||||
return 'REC';
|
||||
|
||||
@@ -82,7 +82,7 @@ class StripeConnectService {
|
||||
debugPrint('📋 Génération du lien d\'onboarding pour account: $accountId');
|
||||
|
||||
// URLs de retour après onboarding
|
||||
const baseUrl = 'https://dapp.geosector.fr'; // À adapter selon l'environnement
|
||||
const baseUrl = 'https://app.geo.dev'; // À adapter selon l'environnement
|
||||
final returnUrl = Uri.encodeFull('$baseUrl/stripe/success');
|
||||
final refreshUrl = Uri.encodeFull('$baseUrl/stripe/refresh');
|
||||
|
||||
|
||||
@@ -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