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:
82
pubspec.yaml
82
pubspec.yaml
@@ -11,61 +11,71 @@ dependencies:
|
||||
flutter:
|
||||
sdk: flutter
|
||||
|
||||
shared_preferences: ^2.0.0
|
||||
image_picker: ^0.8.4+8
|
||||
camerawesome: ^2.1.0
|
||||
path_provider: ^2.0.11
|
||||
permission_handler: ^10.2.0
|
||||
video_player: ^2.2.19
|
||||
# UI & Core
|
||||
cupertino_icons: ^1.0.8
|
||||
|
||||
# State Management
|
||||
flutter_bloc: ^8.1.6
|
||||
provider: ^6.1.2
|
||||
equatable: ^2.0.5
|
||||
|
||||
# Dependency Injection
|
||||
get_it: ^7.7.0
|
||||
|
||||
# Networking
|
||||
http: ^1.2.1
|
||||
web_socket_channel: ^3.0.1
|
||||
|
||||
# Storage & Persistence
|
||||
shared_preferences: ^2.2.3
|
||||
flutter_secure_storage: ^10.0.0
|
||||
path_provider: ^2.1.3
|
||||
|
||||
# Media & Camera
|
||||
image_picker: ^1.1.2
|
||||
# camerawesome: ^2.1.0 # Incompatible avec Flutter 3.24.3
|
||||
video_player: ^2.9.5
|
||||
carousel_slider: ^5.0.0
|
||||
bcrypt: ^1.1.3
|
||||
|
||||
# Maps & Location
|
||||
google_maps_flutter: ^2.7.0
|
||||
permission_handler: ^11.3.1
|
||||
|
||||
# Security & Encryption
|
||||
encrypt: ^5.0.3
|
||||
flutter_bcrypt: ^1.0.8
|
||||
encrypt: ^5.0.0
|
||||
provider: ^6.0.0
|
||||
flare_flutter: ^3.0.0
|
||||
logger: ^1.4.0
|
||||
flutter_spinkit: ^5.1.0
|
||||
|
||||
# UI Components & Animations
|
||||
# flutter_spinkit: ^5.2.1 # Incompatible avec Flutter 3.24.3
|
||||
flutter_vibrate: ^1.3.0
|
||||
loading_icon_button: ^0.0.6
|
||||
intl: ^0.18.0
|
||||
fluttertoast: ^8.0.8
|
||||
flutter_secure_storage: ^7.0.1
|
||||
google_maps_flutter: ^2.9.0
|
||||
cupertino_icons: ^1.0.8
|
||||
|
||||
|
||||
# State management with flutter_bloc
|
||||
flutter_bloc: ^8.0.9
|
||||
|
||||
# HTTP client for API requests
|
||||
http: ^0.13.3
|
||||
|
||||
# Dependency injection with get_it
|
||||
get_it: ^7.2.0
|
||||
|
||||
# Equatable for easier comparison of objects
|
||||
equatable: ^2.0.3
|
||||
|
||||
# Functional programming utilities
|
||||
|
||||
# Utilities
|
||||
intl: ^0.19.0
|
||||
fluttertoast: ^8.2.6
|
||||
logger: ^2.3.0
|
||||
|
||||
# Functional Programming
|
||||
dartz: ^0.10.1
|
||||
flutter_image_compress: ^2.4.0
|
||||
|
||||
meta: any
|
||||
dependency_overrides:
|
||||
# Résout les conflits de dépendances transitives
|
||||
rxdart: ^0.28.0
|
||||
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
sdk: flutter
|
||||
flutter_launcher_icons: ^0.14.1
|
||||
flutter_lints: ^4.0.0
|
||||
bloc_test: ^9.1.7
|
||||
mocktail: ^1.0.4
|
||||
|
||||
flutter_icons:
|
||||
android: true
|
||||
ios: true
|
||||
image_path: "lib/assets/images/app_icon.png"
|
||||
|
||||
shared_preferences: ^2.0.13
|
||||
flutter_lints: ^4.0.0
|
||||
|
||||
flutter:
|
||||
uses-material-design: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user