auto-claude: subtask-2-3 - Create PhotoCaptureDialog component for photo confirmation
Add PhotoCaptureDialog widget component that: - Shows captured photo preview with proper constraints - Displays confirmation message using delivery name - Provides Cancel and Upload action buttons - Uses theme-aware styling with colorScheme - Handles image loading errors gracefully - Includes proper i18n support (EN/FR) Added localization keys: - confirmPhoto - uploadPhotoConfirmation (with name placeholder) - uploadingPhoto - photoUploadSuccess - photoUploadFailed - cameraError - uploadError - serverError - retake Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -267,4 +267,39 @@ class AppLocalizationsFr extends AppLocalizations {
|
||||
|
||||
@override
|
||||
String get close => 'Fermer';
|
||||
|
||||
@override
|
||||
String get confirmPhoto => 'Confirmer la photo';
|
||||
|
||||
@override
|
||||
String uploadPhotoConfirmation(String name) {
|
||||
return 'Telecharger cette photo pour $name?';
|
||||
}
|
||||
|
||||
@override
|
||||
String get uploadingPhoto => 'Telechargement de la photo...';
|
||||
|
||||
@override
|
||||
String get photoUploadSuccess => 'Photo telechargee avec succes';
|
||||
|
||||
@override
|
||||
String photoUploadFailed(int statusCode) {
|
||||
return 'Echec du telechargement: $statusCode';
|
||||
}
|
||||
|
||||
@override
|
||||
String cameraError(String message) {
|
||||
return 'Erreur de camera: $message';
|
||||
}
|
||||
|
||||
@override
|
||||
String uploadError(String message) {
|
||||
return 'Erreur de telechargement: $message';
|
||||
}
|
||||
|
||||
@override
|
||||
String get serverError => 'Erreur serveur - Veuillez contacter le support';
|
||||
|
||||
@override
|
||||
String get retake => 'Reprendre';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user