forked from eatvio/eatvio_app
feat(app): Feed, recipe, blog posts, diet and plan show and index pages, state management, API implementation and layouts
This commit is contained in:
23
lib/presentation/feed/feed_screen/bloc/feed_event.dart
Normal file
23
lib/presentation/feed/feed_screen/bloc/feed_event.dart
Normal file
@@ -0,0 +1,23 @@
|
||||
// ignore_for_file: must_be_immutable
|
||||
|
||||
part of 'feed_bloc.dart';
|
||||
|
||||
/// Abstract class for all events that can be dispatched from the
|
||||
///Feed widget.
|
||||
///
|
||||
/// Events must be immutable and implement the [Equatable] interface.
|
||||
@immutable
|
||||
abstract class FeedEvent extends Equatable {}
|
||||
|
||||
/// Event that is dispatched when the Feed widget is first created.
|
||||
class FeedInitialEvent extends FeedEvent {
|
||||
@override
|
||||
List<Object?> get props => [];
|
||||
}
|
||||
|
||||
class UploadAvatar extends FeedEvent {
|
||||
UploadAvatar(this.image);
|
||||
final XFile image;
|
||||
@override
|
||||
List<Object> get props => [image];
|
||||
}
|
||||
Reference in New Issue
Block a user