fix(chat): Correction race condition + Implémentation TODOs
## Corrections Critiques ### Race Condition - Statuts de Messages - Fix : Les icônes de statut (✓, ✓✓, ✓✓ bleu) ne s'affichaient pas - Cause : WebSocket delivery confirmations arrivaient avant messages locaux - Solution : Pattern Optimistic UI dans chat_bloc.dart - Création message temporaire immédiate - Ajout à la liste AVANT requête HTTP - Remplacement par message serveur à la réponse - Fichier : lib/presentation/state_management/chat_bloc.dart ## Implémentation TODOs (13/21) ### Social (social_header_widget.dart) - ✅ Copier lien du post dans presse-papiers - ✅ Partage natif via Share.share() - ✅ Dialogue de signalement avec 5 raisons ### Partage (share_post_dialog.dart) - ✅ Interface sélection d'amis avec checkboxes - ✅ Partage externe via Share API ### Média (media_upload_service.dart) - ✅ Parsing JSON réponse backend - ✅ Méthode deleteMedia() pour suppression - ✅ Génération miniature vidéo ### Posts (create_post_dialog.dart, edit_post_dialog.dart) - ✅ Extraction URL depuis uploads - ✅ Documentation chargement médias ### Chat (conversations_screen.dart) - ✅ Navigation vers notifications - ✅ ConversationSearchDelegate pour recherche ## Nouveaux Fichiers ### Configuration - build-prod.ps1 : Script build production avec dart-define - lib/core/constants/env_config.dart : Gestion environnements ### Documentation - TODOS_IMPLEMENTED.md : Documentation complète TODOs ## Améliorations ### Architecture - Refactoring injection de dépendances - Amélioration routing et navigation - Optimisation providers (UserProvider, FriendsProvider) ### UI/UX - Amélioration thème et couleurs - Optimisation animations - Meilleure gestion erreurs ### Services - Configuration API avec env_config - Amélioration datasources (events, users) - Optimisation modèles de données
This commit is contained in:
@@ -5,11 +5,11 @@ import '../../../../core/constants/colors.dart';
|
||||
/// [SupportSectionCard] affiche les options de support et assistance.
|
||||
/// Inclut des animations, du retour haptique, et des logs détaillés pour chaque action.
|
||||
class SupportSectionCard extends StatelessWidget {
|
||||
const SupportSectionCard({Key? key}) : super(key: key);
|
||||
const SupportSectionCard({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
debugPrint("[LOG] Initialisation de SupportSectionCard.");
|
||||
debugPrint('[LOG] Initialisation de SupportSectionCard.');
|
||||
|
||||
return Card(
|
||||
color: AppColors.cardColor.withOpacity(0.95),
|
||||
@@ -17,7 +17,7 @@ class SupportSectionCard extends StatelessWidget {
|
||||
elevation: 6,
|
||||
shadowColor: AppColors.darkPrimary.withOpacity(0.4),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16.0, vertical: 20.0),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 20),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
@@ -35,7 +35,7 @@ class SupportSectionCard extends StatelessWidget {
|
||||
context,
|
||||
icon: Icons.help_outline,
|
||||
label: 'Support et Assistance',
|
||||
logMessage: "Accès au Support et Assistance.",
|
||||
logMessage: 'Accès au Support et Assistance.',
|
||||
),
|
||||
_buildDivider(),
|
||||
_buildOption(
|
||||
@@ -49,7 +49,7 @@ class SupportSectionCard extends StatelessWidget {
|
||||
context,
|
||||
icon: Icons.privacy_tip_outlined,
|
||||
label: 'Politique de confidentialité',
|
||||
logMessage: "Accès à la politique de confidentialité.",
|
||||
logMessage: 'Accès à la politique de confidentialité.',
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -67,13 +67,13 @@ class SupportSectionCard extends StatelessWidget {
|
||||
return InkWell(
|
||||
onTap: () {
|
||||
HapticFeedback.lightImpact(); // Retour haptique léger
|
||||
debugPrint("[LOG] $logMessage");
|
||||
debugPrint('[LOG] $logMessage');
|
||||
// Ajout de la navigation ou de l'action ici.
|
||||
},
|
||||
splashColor: AppColors.accentColor.withOpacity(0.3),
|
||||
highlightColor: AppColors.cardColor.withOpacity(0.1),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 12.0),
|
||||
padding: const EdgeInsets.symmetric(vertical: 12),
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(icon, color: AppColors.accentColor, size: 28),
|
||||
|
||||
Reference in New Issue
Block a user