69 lines
1.5 KiB
Dart
69 lines
1.5 KiB
Dart
class PostcardCreationEvent {}
|
|
|
|
class PickImageFromGallery extends PostcardCreationEvent {}
|
|
|
|
class PickImageFromCamera extends PostcardCreationEvent {}
|
|
|
|
class GoToNextStep extends PostcardCreationEvent {}
|
|
|
|
class GoToPreviousStep extends PostcardCreationEvent {}
|
|
|
|
class UploadImage extends PostcardCreationEvent {
|
|
final String imagePath;
|
|
|
|
UploadImage(this.imagePath);
|
|
}
|
|
|
|
class SelectFilter extends PostcardCreationEvent {
|
|
final String filterName;
|
|
|
|
SelectFilter(this.filterName);
|
|
}
|
|
|
|
class WriteMessage extends PostcardCreationEvent {
|
|
final String message;
|
|
|
|
WriteMessage(this.message);
|
|
}
|
|
|
|
class ChangeFontStyle extends PostcardCreationEvent {
|
|
final String fontName;
|
|
ChangeFontStyle(this.fontName);
|
|
}
|
|
|
|
class TogglePurchaseOption extends PostcardCreationEvent {
|
|
final bool isGift;
|
|
|
|
TogglePurchaseOption(this.isGift);
|
|
}
|
|
|
|
class UpdatePurchaseFormData extends PostcardCreationEvent {
|
|
final String? pcTitle;
|
|
final String? fullName;
|
|
final String? emailId;
|
|
final String? phoneNumber;
|
|
final String? city;
|
|
final String? country;
|
|
final String? state;
|
|
final String? zipCode;
|
|
|
|
UpdatePurchaseFormData({
|
|
this.pcTitle,
|
|
this.fullName,
|
|
this.emailId,
|
|
this.phoneNumber,
|
|
this.city,
|
|
this.country,
|
|
this.state,
|
|
this.zipCode,
|
|
});
|
|
}
|
|
|
|
// 🆕 NEW: Clear error message
|
|
class ClearError extends PostcardCreationEvent {}
|
|
// 🆕 ADD THIS EVENT
|
|
class UpdatePostcardNumber extends PostcardCreationEvent {
|
|
final String pcNumber;
|
|
|
|
UpdatePostcardNumber(this.pcNumber);
|
|
} |