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

@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';
import '../../../../shared/design_system/tokens/app_colors.dart';
import '../../../../shared/design_system/unionflow_design_system.dart';
import '../../../../shared/widgets/core_card.dart';
@@ -40,34 +41,34 @@ class _HelpSupportPageState extends State<HelpSupportPage> {
backgroundColor: Theme.of(context).scaffoldBackgroundColor,
appBar: const UFAppBar(title: 'AIDE & SUPPORT'),
body: SingleChildScrollView(
padding: const EdgeInsets.all(16),
padding: const EdgeInsets.all(12),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
// Header harmonisé
_buildHeader(),
const SizedBox(height: 16),
const SizedBox(height: 8),
// Barre de recherche
_buildSearchSection(),
const SizedBox(height: 16),
const SizedBox(height: 8),
// Actions rapides
_buildQuickActionsSection(),
const SizedBox(height: 16),
const SizedBox(height: 8),
// Catégories FAQ
_buildCategoriesSection(),
const SizedBox(height: 16),
const SizedBox(height: 8),
// FAQ
_buildFAQSection(),
const SizedBox(height: 16),
const SizedBox(height: 8),
// Guides et tutoriels
_buildGuidesSection(),
const SizedBox(height: 16),
const SizedBox(height: 8),
// Contact support
_buildContactSection(),
const SizedBox(height: 80),
@@ -83,18 +84,18 @@ class _HelpSupportPageState extends State<HelpSupportPage> {
child: Column(
children: [
Container(
padding: const EdgeInsets.all(16),
padding: const EdgeInsets.all(10),
decoration: BoxDecoration(
color: AppColors.primaryGreen.withOpacity(0.1),
borderRadius: BorderRadius.circular(20),
borderRadius: BorderRadius.circular(12),
),
child: const Icon(
Icons.help_outline,
color: AppColors.primaryGreen,
size: 48,
size: 32,
),
),
const SizedBox(height: 16),
const SizedBox(height: 8),
Text(
'COMMENT POUVONS-NOUS VOUS AIDER ?',
style: AppTypography.headerSmall.copyWith(fontWeight: FontWeight.bold),
@@ -515,7 +516,7 @@ class _HelpSupportPageState extends State<HelpSupportPage> {
_contactByEmail();
},
style: ElevatedButton.styleFrom(
backgroundColor: const Color(0xFF6C5CE7),
backgroundColor: AppColors.primaryGreen,
foregroundColor: Colors.white,
),
child: const Text('Envoyer un email'),
@@ -546,7 +547,7 @@ class _HelpSupportPageState extends State<HelpSupportPage> {
_launchUrl('mailto:support@unionflow.com?subject=Rapport de bug - UnionFlow Mobile');
},
style: ElevatedButton.styleFrom(
backgroundColor: const Color(0xFFE17055),
backgroundColor: AppColors.error,
foregroundColor: Colors.white,
),
child: const Text('Signaler'),
@@ -577,7 +578,7 @@ class _HelpSupportPageState extends State<HelpSupportPage> {
_launchUrl('mailto:support@unionflow.com?subject=Demande de fonctionnalité - UnionFlow Mobile');
},
style: ElevatedButton.styleFrom(
backgroundColor: const Color(0xFF0984E3),
backgroundColor: AppColors.primaryGreen,
foregroundColor: Colors.white,
),
child: const Text('Envoyer'),
@@ -612,7 +613,7 @@ class _HelpSupportPageState extends State<HelpSupportPage> {
_launchUrl('https://docs.unionflow.com/$guideId');
},
style: ElevatedButton.styleFrom(
backgroundColor: const Color(0xFF6C5CE7),
backgroundColor: AppColors.primaryGreen,
foregroundColor: Colors.white,
),
child: const Text('Voir en ligne'),
@@ -643,7 +644,7 @@ class _HelpSupportPageState extends State<HelpSupportPage> {
_contactByEmail();
},
style: ElevatedButton.styleFrom(
backgroundColor: const Color(0xFF6C5CE7),
backgroundColor: AppColors.primaryGreen,
foregroundColor: Colors.white,
),
child: const Text('Contacter le support'),
@@ -672,7 +673,7 @@ class _HelpSupportPageState extends State<HelpSupportPage> {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text(message),
backgroundColor: const Color(0xFFE74C3C),
backgroundColor: AppColors.error,
behavior: SnackBarBehavior.floating,
),
);
@@ -683,7 +684,7 @@ class _HelpSupportPageState extends State<HelpSupportPage> {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text(message),
backgroundColor: const Color(0xFF00B894),
backgroundColor: AppColors.success,
behavior: SnackBarBehavior.floating,
),
);