feat(order info): added order info screen

This commit is contained in:
Username1548
2025-04-04 20:21:31 +07:00
parent 9715f4cac9
commit 748484cf8f
387 changed files with 16171 additions and 18199 deletions

View File

@@ -12,8 +12,7 @@ part of 'create_diet_model.dart';
T _$identity<T>(T value) => value;
final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models',
);
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#adding-getters-and-methods-to-our-models');
/// @nodoc
mixin _$CreateDietModel {
@@ -37,20 +36,18 @@ mixin _$CreateDietModel {
/// @nodoc
abstract class $CreateDietModelCopyWith<$Res> {
factory $CreateDietModelCopyWith(
CreateDietModel value,
$Res Function(CreateDietModel) then,
) = _$CreateDietModelCopyWithImpl<$Res, CreateDietModel>;
CreateDietModel value, $Res Function(CreateDietModel) then) =
_$CreateDietModelCopyWithImpl<$Res, CreateDietModel>;
@useResult
$Res call({
String? imageUrl,
String? name,
String? details,
DietState? state,
int? duration,
Map<String, bool> type,
XFile? image,
List<List<List<DailySchedule>>>? dailySchedule,
});
$Res call(
{String? imageUrl,
String? name,
String? details,
DietState? state,
int? duration,
Map<String, bool> type,
XFile? image,
List<List<List<DailySchedule>>>? dailySchedule});
}
/// @nodoc
@@ -77,73 +74,60 @@ class _$CreateDietModelCopyWithImpl<$Res, $Val extends CreateDietModel>
Object? image = freezed,
Object? dailySchedule = freezed,
}) {
return _then(
_value.copyWith(
imageUrl:
freezed == imageUrl
? _value.imageUrl
: imageUrl // ignore: cast_nullable_to_non_nullable
as String?,
name:
freezed == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String?,
details:
freezed == details
? _value.details
: details // ignore: cast_nullable_to_non_nullable
as String?,
state:
freezed == state
? _value.state
: state // ignore: cast_nullable_to_non_nullable
as DietState?,
duration:
freezed == duration
? _value.duration
: duration // ignore: cast_nullable_to_non_nullable
as int?,
type:
null == type
? _value.type
: type // ignore: cast_nullable_to_non_nullable
as Map<String, bool>,
image:
freezed == image
? _value.image
: image // ignore: cast_nullable_to_non_nullable
as XFile?,
dailySchedule:
freezed == dailySchedule
? _value.dailySchedule
: dailySchedule // ignore: cast_nullable_to_non_nullable
as List<List<List<DailySchedule>>>?,
)
as $Val,
);
return _then(_value.copyWith(
imageUrl: freezed == imageUrl
? _value.imageUrl
: imageUrl // ignore: cast_nullable_to_non_nullable
as String?,
name: freezed == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String?,
details: freezed == details
? _value.details
: details // ignore: cast_nullable_to_non_nullable
as String?,
state: freezed == state
? _value.state
: state // ignore: cast_nullable_to_non_nullable
as DietState?,
duration: freezed == duration
? _value.duration
: duration // ignore: cast_nullable_to_non_nullable
as int?,
type: null == type
? _value.type
: type // ignore: cast_nullable_to_non_nullable
as Map<String, bool>,
image: freezed == image
? _value.image
: image // ignore: cast_nullable_to_non_nullable
as XFile?,
dailySchedule: freezed == dailySchedule
? _value.dailySchedule
: dailySchedule // ignore: cast_nullable_to_non_nullable
as List<List<List<DailySchedule>>>?,
) as $Val);
}
}
/// @nodoc
abstract class _$$CreateDietModelImplCopyWith<$Res>
implements $CreateDietModelCopyWith<$Res> {
factory _$$CreateDietModelImplCopyWith(
_$CreateDietModelImpl value,
$Res Function(_$CreateDietModelImpl) then,
) = __$$CreateDietModelImplCopyWithImpl<$Res>;
factory _$$CreateDietModelImplCopyWith(_$CreateDietModelImpl value,
$Res Function(_$CreateDietModelImpl) then) =
__$$CreateDietModelImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({
String? imageUrl,
String? name,
String? details,
DietState? state,
int? duration,
Map<String, bool> type,
XFile? image,
List<List<List<DailySchedule>>>? dailySchedule,
});
$Res call(
{String? imageUrl,
String? name,
String? details,
DietState? state,
int? duration,
Map<String, bool> type,
XFile? image,
List<List<List<DailySchedule>>>? dailySchedule});
}
/// @nodoc
@@ -151,9 +135,8 @@ class __$$CreateDietModelImplCopyWithImpl<$Res>
extends _$CreateDietModelCopyWithImpl<$Res, _$CreateDietModelImpl>
implements _$$CreateDietModelImplCopyWith<$Res> {
__$$CreateDietModelImplCopyWithImpl(
_$CreateDietModelImpl _value,
$Res Function(_$CreateDietModelImpl) _then,
) : super(_value, _then);
_$CreateDietModelImpl _value, $Res Function(_$CreateDietModelImpl) _then)
: super(_value, _then);
/// Create a copy of CreateDietModel
/// with the given fields replaced by the non-null parameter values.
@@ -169,68 +152,58 @@ class __$$CreateDietModelImplCopyWithImpl<$Res>
Object? image = freezed,
Object? dailySchedule = freezed,
}) {
return _then(
_$CreateDietModelImpl(
imageUrl:
freezed == imageUrl
? _value.imageUrl
: imageUrl // ignore: cast_nullable_to_non_nullable
as String?,
name:
freezed == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String?,
details:
freezed == details
? _value.details
: details // ignore: cast_nullable_to_non_nullable
as String?,
state:
freezed == state
? _value.state
: state // ignore: cast_nullable_to_non_nullable
as DietState?,
duration:
freezed == duration
? _value.duration
: duration // ignore: cast_nullable_to_non_nullable
as int?,
type:
null == type
? _value._type
: type // ignore: cast_nullable_to_non_nullable
as Map<String, bool>,
image:
freezed == image
? _value.image
: image // ignore: cast_nullable_to_non_nullable
as XFile?,
dailySchedule:
freezed == dailySchedule
? _value._dailySchedule
: dailySchedule // ignore: cast_nullable_to_non_nullable
as List<List<List<DailySchedule>>>?,
),
);
return _then(_$CreateDietModelImpl(
imageUrl: freezed == imageUrl
? _value.imageUrl
: imageUrl // ignore: cast_nullable_to_non_nullable
as String?,
name: freezed == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String?,
details: freezed == details
? _value.details
: details // ignore: cast_nullable_to_non_nullable
as String?,
state: freezed == state
? _value.state
: state // ignore: cast_nullable_to_non_nullable
as DietState?,
duration: freezed == duration
? _value.duration
: duration // ignore: cast_nullable_to_non_nullable
as int?,
type: null == type
? _value._type
: type // ignore: cast_nullable_to_non_nullable
as Map<String, bool>,
image: freezed == image
? _value.image
: image // ignore: cast_nullable_to_non_nullable
as XFile?,
dailySchedule: freezed == dailySchedule
? _value._dailySchedule
: dailySchedule // ignore: cast_nullable_to_non_nullable
as List<List<List<DailySchedule>>>?,
));
}
}
/// @nodoc
class _$CreateDietModelImpl extends _CreateDietModel {
const _$CreateDietModelImpl({
this.imageUrl,
this.name,
this.details,
this.state,
this.duration,
required final Map<String, bool> type,
this.image,
final List<List<List<DailySchedule>>>? dailySchedule,
}) : _type = type,
_dailySchedule = dailySchedule,
super._();
const _$CreateDietModelImpl(
{this.imageUrl,
this.name,
this.details,
this.state,
this.duration,
required final Map<String, bool> type,
this.image,
final List<List<List<DailySchedule>>>? dailySchedule})
: _type = type,
_dailySchedule = dailySchedule,
super._();
@override
final String? imageUrl;
@@ -281,24 +254,21 @@ class _$CreateDietModelImpl extends _CreateDietModel {
other.duration == duration) &&
const DeepCollectionEquality().equals(other._type, _type) &&
(identical(other.image, image) || other.image == image) &&
const DeepCollectionEquality().equals(
other._dailySchedule,
_dailySchedule,
));
const DeepCollectionEquality()
.equals(other._dailySchedule, _dailySchedule));
}
@override
int get hashCode => Object.hash(
runtimeType,
imageUrl,
name,
details,
state,
duration,
const DeepCollectionEquality().hash(_type),
image,
const DeepCollectionEquality().hash(_dailySchedule),
);
runtimeType,
imageUrl,
name,
details,
state,
duration,
const DeepCollectionEquality().hash(_type),
image,
const DeepCollectionEquality().hash(_dailySchedule));
/// Create a copy of CreateDietModel
/// with the given fields replaced by the non-null parameter values.
@@ -307,22 +277,20 @@ class _$CreateDietModelImpl extends _CreateDietModel {
@pragma('vm:prefer-inline')
_$$CreateDietModelImplCopyWith<_$CreateDietModelImpl> get copyWith =>
__$$CreateDietModelImplCopyWithImpl<_$CreateDietModelImpl>(
this,
_$identity,
);
this, _$identity);
}
abstract class _CreateDietModel extends CreateDietModel {
const factory _CreateDietModel({
final String? imageUrl,
final String? name,
final String? details,
final DietState? state,
final int? duration,
required final Map<String, bool> type,
final XFile? image,
final List<List<List<DailySchedule>>>? dailySchedule,
}) = _$CreateDietModelImpl;
const factory _CreateDietModel(
{final String? imageUrl,
final String? name,
final String? details,
final DietState? state,
final int? duration,
required final Map<String, bool> type,
final XFile? image,
final List<List<List<DailySchedule>>>? dailySchedule}) =
_$CreateDietModelImpl;
const _CreateDietModel._() : super._();
@override