forked from eatvio/eatvio_app
feat(app): Initial layouts for subscribers, feed display fix, feed photo upload front end
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
// ignore_for_file: must_be_immutable
|
||||
|
||||
part of 'subscribers_bloc.dart';
|
||||
|
||||
class SubscribersState extends Equatable {
|
||||
const SubscribersState({this.myProfileModelObj});
|
||||
|
||||
final SubscribersModel? myProfileModelObj;
|
||||
|
||||
@override
|
||||
List<Object?> get props => [myProfileModelObj];
|
||||
}
|
||||
|
||||
class SubscribersInitialState extends SubscribersState {
|
||||
SubscribersInitialState({required SubscribersModel myProfileModelObj})
|
||||
: super(myProfileModelObj: myProfileModelObj);
|
||||
}
|
||||
|
||||
/// Represents the state of Subscribers in the application.
|
||||
class SubscribersLoadedState extends SubscribersState {
|
||||
SubscribersLoadedState({this.myProfileModelObj, this.subscribers})
|
||||
: super(myProfileModelObj: null);
|
||||
|
||||
SubscribersModel? myProfileModelObj;
|
||||
dynamic subscribers;
|
||||
@override
|
||||
List<Object?> get props => [
|
||||
myProfileModelObj,
|
||||
subscribers,
|
||||
];
|
||||
SubscribersLoadedState copyWith({
|
||||
SubscribersModel? myProfileModelObj,
|
||||
dynamic subscribers,
|
||||
}) {
|
||||
return SubscribersLoadedState(
|
||||
myProfileModelObj: myProfileModelObj ?? this.myProfileModelObj,
|
||||
subscribers: subscribers ?? this.subscribers,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class SubscribersErrorState extends SubscribersState {
|
||||
final String errorMessage;
|
||||
|
||||
const SubscribersErrorState(this.errorMessage);
|
||||
|
||||
@override
|
||||
List<Object> get props => [errorMessage];
|
||||
}
|
||||
Reference in New Issue
Block a user