new project stable version

This commit is contained in:
2026-05-10 19:11:31 +03:00
commit 3616f84556
391 changed files with 23857 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
enum SendPhotoStatus { initial, loading, success, failure }
class SendPhotoState {
final SendPhotoStatus status;
final List<String> selectedImages;
final List<int> recievedPhotoIds;
final String errorMessage;
const SendPhotoState({
this.status = SendPhotoStatus.initial,
this.selectedImages = const [],
this.recievedPhotoIds = const [],
this.errorMessage = '',
});
SendPhotoState copyWith({
SendPhotoStatus? status,
List<String>? selectedImages,
List<int>? recievedPhotoIds,
String? errorMessage,
}) {
return SendPhotoState(
status: status ?? this.status,
selectedImages: selectedImages ?? this.selectedImages,
recievedPhotoIds: recievedPhotoIds ?? this.recievedPhotoIds,
errorMessage: errorMessage ?? this.errorMessage,
);
}
bool get hasSelectedImages => selectedImages.isNotEmpty;
}