# Conflicts:
#	lib/presentation/navigation/app_router.dart
#	pubspec.yaml
This commit is contained in:
2026-08-11 00:14:00 +03:00
parent c9b8d143d1
commit 182be1049b
351 changed files with 24566 additions and 22898 deletions

View File

@@ -1,31 +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;
}
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;
}