forked from eatvio/eatvio_app
feat(feed): add diets api and create blog post screen, fix status bar
This commit is contained in:
@@ -24,7 +24,6 @@ mixin _$BlogPostState {
|
||||
required TResult Function(String errorMessage) error,
|
||||
}) =>
|
||||
throw _privateConstructorUsedError;
|
||||
|
||||
@optionalTypeArgs
|
||||
TResult? whenOrNull<TResult extends Object?>(
|
||||
TResult? Function()? $default, {
|
||||
@@ -71,28 +70,36 @@ mixin _$BlogPostState {
|
||||
|
||||
/// @nodoc
|
||||
abstract class $BlogPostStateCopyWith<$Res> {
|
||||
factory $BlogPostStateCopyWith(BlogPostState value, $Res Function(BlogPostState) then) = _$BlogPostStateCopyWithImpl<$Res, BlogPostState>;
|
||||
factory $BlogPostStateCopyWith(
|
||||
BlogPostState value, $Res Function(BlogPostState) then) =
|
||||
_$BlogPostStateCopyWithImpl<$Res, BlogPostState>;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class _$BlogPostStateCopyWithImpl<$Res, $Val extends BlogPostState> implements $BlogPostStateCopyWith<$Res> {
|
||||
class _$BlogPostStateCopyWithImpl<$Res, $Val extends BlogPostState>
|
||||
implements $BlogPostStateCopyWith<$Res> {
|
||||
_$BlogPostStateCopyWithImpl(this._value, this._then);
|
||||
|
||||
// ignore: unused_field
|
||||
final $Val _value;
|
||||
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$BlogPostStateImplCopyWith<$Res> {
|
||||
factory _$$BlogPostStateImplCopyWith(_$BlogPostStateImpl value, $Res Function(_$BlogPostStateImpl) then) = __$$BlogPostStateImplCopyWithImpl<$Res>;
|
||||
factory _$$BlogPostStateImplCopyWith(
|
||||
_$BlogPostStateImpl value, $Res Function(_$BlogPostStateImpl) then) =
|
||||
__$$BlogPostStateImplCopyWithImpl<$Res>;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$BlogPostStateImplCopyWithImpl<$Res> extends _$BlogPostStateCopyWithImpl<$Res, _$BlogPostStateImpl> implements _$$BlogPostStateImplCopyWith<$Res> {
|
||||
__$$BlogPostStateImplCopyWithImpl(_$BlogPostStateImpl _value, $Res Function(_$BlogPostStateImpl) _then) : super(_value, _then);
|
||||
class __$$BlogPostStateImplCopyWithImpl<$Res>
|
||||
extends _$BlogPostStateCopyWithImpl<$Res, _$BlogPostStateImpl>
|
||||
implements _$$BlogPostStateImplCopyWith<$Res> {
|
||||
__$$BlogPostStateImplCopyWithImpl(
|
||||
_$BlogPostStateImpl _value, $Res Function(_$BlogPostStateImpl) _then)
|
||||
: super(_value, _then);
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -107,7 +114,8 @@ class _$BlogPostStateImpl implements _BlogPostState {
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) || (other.runtimeType == runtimeType && other is _$BlogPostStateImpl);
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType && other is _$BlogPostStateImpl);
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -194,14 +202,18 @@ abstract class _BlogPostState implements BlogPostState {
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$BlogPostStateLoadingImplCopyWith<$Res> {
|
||||
factory _$$BlogPostStateLoadingImplCopyWith(_$BlogPostStateLoadingImpl value, $Res Function(_$BlogPostStateLoadingImpl) then) =
|
||||
factory _$$BlogPostStateLoadingImplCopyWith(_$BlogPostStateLoadingImpl value,
|
||||
$Res Function(_$BlogPostStateLoadingImpl) then) =
|
||||
__$$BlogPostStateLoadingImplCopyWithImpl<$Res>;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$BlogPostStateLoadingImplCopyWithImpl<$Res> extends _$BlogPostStateCopyWithImpl<$Res, _$BlogPostStateLoadingImpl>
|
||||
class __$$BlogPostStateLoadingImplCopyWithImpl<$Res>
|
||||
extends _$BlogPostStateCopyWithImpl<$Res, _$BlogPostStateLoadingImpl>
|
||||
implements _$$BlogPostStateLoadingImplCopyWith<$Res> {
|
||||
__$$BlogPostStateLoadingImplCopyWithImpl(_$BlogPostStateLoadingImpl _value, $Res Function(_$BlogPostStateLoadingImpl) _then) : super(_value, _then);
|
||||
__$$BlogPostStateLoadingImplCopyWithImpl(_$BlogPostStateLoadingImpl _value,
|
||||
$Res Function(_$BlogPostStateLoadingImpl) _then)
|
||||
: super(_value, _then);
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
@@ -216,7 +228,9 @@ class _$BlogPostStateLoadingImpl implements BlogPostStateLoading {
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) || (other.runtimeType == runtimeType && other is _$BlogPostStateLoadingImpl);
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$BlogPostStateLoadingImpl);
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -303,9 +317,9 @@ abstract class BlogPostStateLoading implements BlogPostState {
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$BlogPostStateLoadedImplCopyWith<$Res> {
|
||||
factory _$$BlogPostStateLoadedImplCopyWith(_$BlogPostStateLoadedImpl value, $Res Function(_$BlogPostStateLoadedImpl) then) =
|
||||
factory _$$BlogPostStateLoadedImplCopyWith(_$BlogPostStateLoadedImpl value,
|
||||
$Res Function(_$BlogPostStateLoadedImpl) then) =
|
||||
__$$BlogPostStateLoadedImplCopyWithImpl<$Res>;
|
||||
|
||||
@useResult
|
||||
$Res call({BlogPostModel blogPost});
|
||||
|
||||
@@ -313,9 +327,12 @@ abstract class _$$BlogPostStateLoadedImplCopyWith<$Res> {
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$BlogPostStateLoadedImplCopyWithImpl<$Res> extends _$BlogPostStateCopyWithImpl<$Res, _$BlogPostStateLoadedImpl>
|
||||
class __$$BlogPostStateLoadedImplCopyWithImpl<$Res>
|
||||
extends _$BlogPostStateCopyWithImpl<$Res, _$BlogPostStateLoadedImpl>
|
||||
implements _$$BlogPostStateLoadedImplCopyWith<$Res> {
|
||||
__$$BlogPostStateLoadedImplCopyWithImpl(_$BlogPostStateLoadedImpl _value, $Res Function(_$BlogPostStateLoadedImpl) _then) : super(_value, _then);
|
||||
__$$BlogPostStateLoadedImplCopyWithImpl(_$BlogPostStateLoadedImpl _value,
|
||||
$Res Function(_$BlogPostStateLoadedImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
@@ -355,7 +372,10 @@ class _$BlogPostStateLoadedImpl implements BlogPostStateLoaded {
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType && other is _$BlogPostStateLoadedImpl && (identical(other.blogPost, blogPost) || other.blogPost == blogPost));
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$BlogPostStateLoadedImpl &&
|
||||
(identical(other.blogPost, blogPost) ||
|
||||
other.blogPost == blogPost));
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -365,7 +385,8 @@ class _$BlogPostStateLoadedImpl implements BlogPostStateLoaded {
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$BlogPostStateLoadedImplCopyWith<_$BlogPostStateLoadedImpl> get copyWith =>
|
||||
__$$BlogPostStateLoadedImplCopyWithImpl<_$BlogPostStateLoadedImpl>(this, _$identity);
|
||||
__$$BlogPostStateLoadedImplCopyWithImpl<_$BlogPostStateLoadedImpl>(
|
||||
this, _$identity);
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
@@ -443,27 +464,31 @@ class _$BlogPostStateLoadedImpl implements BlogPostStateLoaded {
|
||||
}
|
||||
|
||||
abstract class BlogPostStateLoaded implements BlogPostState {
|
||||
const factory BlogPostStateLoaded({required final BlogPostModel blogPost}) = _$BlogPostStateLoadedImpl;
|
||||
const factory BlogPostStateLoaded({required final BlogPostModel blogPost}) =
|
||||
_$BlogPostStateLoadedImpl;
|
||||
|
||||
BlogPostModel get blogPost;
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
_$$BlogPostStateLoadedImplCopyWith<_$BlogPostStateLoadedImpl> get copyWith => throw _privateConstructorUsedError;
|
||||
_$$BlogPostStateLoadedImplCopyWith<_$BlogPostStateLoadedImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract class _$$BlogPostStateErrorImplCopyWith<$Res> {
|
||||
factory _$$BlogPostStateErrorImplCopyWith(_$BlogPostStateErrorImpl value, $Res Function(_$BlogPostStateErrorImpl) then) =
|
||||
factory _$$BlogPostStateErrorImplCopyWith(_$BlogPostStateErrorImpl value,
|
||||
$Res Function(_$BlogPostStateErrorImpl) then) =
|
||||
__$$BlogPostStateErrorImplCopyWithImpl<$Res>;
|
||||
|
||||
@useResult
|
||||
$Res call({String errorMessage});
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
class __$$BlogPostStateErrorImplCopyWithImpl<$Res> extends _$BlogPostStateCopyWithImpl<$Res, _$BlogPostStateErrorImpl>
|
||||
class __$$BlogPostStateErrorImplCopyWithImpl<$Res>
|
||||
extends _$BlogPostStateCopyWithImpl<$Res, _$BlogPostStateErrorImpl>
|
||||
implements _$$BlogPostStateErrorImplCopyWith<$Res> {
|
||||
__$$BlogPostStateErrorImplCopyWithImpl(_$BlogPostStateErrorImpl _value, $Res Function(_$BlogPostStateErrorImpl) _then) : super(_value, _then);
|
||||
__$$BlogPostStateErrorImplCopyWithImpl(_$BlogPostStateErrorImpl _value,
|
||||
$Res Function(_$BlogPostStateErrorImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
@@ -497,7 +522,8 @@ class _$BlogPostStateErrorImpl implements BlogPostStateError {
|
||||
return identical(this, other) ||
|
||||
(other.runtimeType == runtimeType &&
|
||||
other is _$BlogPostStateErrorImpl &&
|
||||
(identical(other.errorMessage, errorMessage) || other.errorMessage == errorMessage));
|
||||
(identical(other.errorMessage, errorMessage) ||
|
||||
other.errorMessage == errorMessage));
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -507,7 +533,8 @@ class _$BlogPostStateErrorImpl implements BlogPostStateError {
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$BlogPostStateErrorImplCopyWith<_$BlogPostStateErrorImpl> get copyWith =>
|
||||
__$$BlogPostStateErrorImplCopyWithImpl<_$BlogPostStateErrorImpl>(this, _$identity);
|
||||
__$$BlogPostStateErrorImplCopyWithImpl<_$BlogPostStateErrorImpl>(
|
||||
this, _$identity);
|
||||
|
||||
@override
|
||||
@optionalTypeArgs
|
||||
@@ -585,10 +612,11 @@ class _$BlogPostStateErrorImpl implements BlogPostStateError {
|
||||
}
|
||||
|
||||
abstract class BlogPostStateError implements BlogPostState {
|
||||
const factory BlogPostStateError({required final String errorMessage}) = _$BlogPostStateErrorImpl;
|
||||
const factory BlogPostStateError({required final String errorMessage}) =
|
||||
_$BlogPostStateErrorImpl;
|
||||
|
||||
String get errorMessage;
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
_$$BlogPostStateErrorImplCopyWith<_$BlogPostStateErrorImpl> get copyWith => throw _privateConstructorUsedError;
|
||||
_$$BlogPostStateErrorImplCopyWith<_$BlogPostStateErrorImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
||||
@@ -177,7 +177,7 @@ class BlogPostScreen extends StatelessWidget {
|
||||
style: theme.textTheme.bodyMedium,
|
||||
),
|
||||
),
|
||||
SizedBox(height: 16.0),
|
||||
SizedBox(height: 8),
|
||||
Row(
|
||||
children: [
|
||||
Padding(
|
||||
|
||||
Reference in New Issue
Block a user