feat(app): Feed, recipe, blog posts, diet and plan show and index pages, state management, API implementation and layouts

This commit is contained in:
2024-05-08 14:11:18 +03:00
parent 404b22e78a
commit 76a29ebf67
45 changed files with 2759 additions and 21 deletions

View 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];
}