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_plan_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 _$CreatePlanModel {
@@ -35,19 +34,17 @@ mixin _$CreatePlanModel {
/// @nodoc
abstract class $CreatePlanModelCopyWith<$Res> {
factory $CreatePlanModelCopyWith(
CreatePlanModel value,
$Res Function(CreatePlanModel) then,
) = _$CreatePlanModelCopyWithImpl<$Res, CreatePlanModel>;
CreatePlanModel value, $Res Function(CreatePlanModel) then) =
_$CreatePlanModelCopyWithImpl<$Res, CreatePlanModel>;
@useResult
$Res call({
String? name,
String? details,
String? state,
int? duration,
List<bool> type,
XFile? image,
List<PacketOptions> options,
});
$Res call(
{String? name,
String? details,
String? state,
int? duration,
List<bool> type,
XFile? image,
List<PacketOptions> options});
}
/// @nodoc
@@ -73,67 +70,55 @@ class _$CreatePlanModelCopyWithImpl<$Res, $Val extends CreatePlanModel>
Object? image = freezed,
Object? options = null,
}) {
return _then(
_value.copyWith(
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 String?,
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 List<bool>,
image:
freezed == image
? _value.image
: image // ignore: cast_nullable_to_non_nullable
as XFile?,
options:
null == options
? _value.options
: options // ignore: cast_nullable_to_non_nullable
as List<PacketOptions>,
)
as $Val,
);
return _then(_value.copyWith(
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 String?,
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 List<bool>,
image: freezed == image
? _value.image
: image // ignore: cast_nullable_to_non_nullable
as XFile?,
options: null == options
? _value.options
: options // ignore: cast_nullable_to_non_nullable
as List<PacketOptions>,
) as $Val);
}
}
/// @nodoc
abstract class _$$CreatePlanModelImplCopyWith<$Res>
implements $CreatePlanModelCopyWith<$Res> {
factory _$$CreatePlanModelImplCopyWith(
_$CreatePlanModelImpl value,
$Res Function(_$CreatePlanModelImpl) then,
) = __$$CreatePlanModelImplCopyWithImpl<$Res>;
factory _$$CreatePlanModelImplCopyWith(_$CreatePlanModelImpl value,
$Res Function(_$CreatePlanModelImpl) then) =
__$$CreatePlanModelImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({
String? name,
String? details,
String? state,
int? duration,
List<bool> type,
XFile? image,
List<PacketOptions> options,
});
$Res call(
{String? name,
String? details,
String? state,
int? duration,
List<bool> type,
XFile? image,
List<PacketOptions> options});
}
/// @nodoc
@@ -141,9 +126,8 @@ class __$$CreatePlanModelImplCopyWithImpl<$Res>
extends _$CreatePlanModelCopyWithImpl<$Res, _$CreatePlanModelImpl>
implements _$$CreatePlanModelImplCopyWith<$Res> {
__$$CreatePlanModelImplCopyWithImpl(
_$CreatePlanModelImpl _value,
$Res Function(_$CreatePlanModelImpl) _then,
) : super(_value, _then);
_$CreatePlanModelImpl _value, $Res Function(_$CreatePlanModelImpl) _then)
: super(_value, _then);
/// Create a copy of CreatePlanModel
/// with the given fields replaced by the non-null parameter values.
@@ -158,62 +142,53 @@ class __$$CreatePlanModelImplCopyWithImpl<$Res>
Object? image = freezed,
Object? options = null,
}) {
return _then(
_$CreatePlanModelImpl(
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 String?,
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 List<bool>,
image:
freezed == image
? _value.image
: image // ignore: cast_nullable_to_non_nullable
as XFile?,
options:
null == options
? _value._options
: options // ignore: cast_nullable_to_non_nullable
as List<PacketOptions>,
),
);
return _then(_$CreatePlanModelImpl(
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 String?,
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 List<bool>,
image: freezed == image
? _value.image
: image // ignore: cast_nullable_to_non_nullable
as XFile?,
options: null == options
? _value._options
: options // ignore: cast_nullable_to_non_nullable
as List<PacketOptions>,
));
}
}
/// @nodoc
class _$CreatePlanModelImpl extends _CreatePlanModel {
const _$CreatePlanModelImpl({
this.name,
this.details,
this.state,
this.duration,
required final List<bool> type,
this.image,
required final List<PacketOptions> options,
}) : _type = type,
_options = options,
super._();
const _$CreatePlanModelImpl(
{this.name,
this.details,
this.state,
this.duration,
required final List<bool> type,
this.image,
required final List<PacketOptions> options})
: _type = type,
_options = options,
super._();
@override
final String? name;
@@ -263,15 +238,14 @@ class _$CreatePlanModelImpl extends _CreatePlanModel {
@override
int get hashCode => Object.hash(
runtimeType,
name,
details,
state,
duration,
const DeepCollectionEquality().hash(_type),
image,
const DeepCollectionEquality().hash(_options),
);
runtimeType,
name,
details,
state,
duration,
const DeepCollectionEquality().hash(_type),
image,
const DeepCollectionEquality().hash(_options));
/// Create a copy of CreatePlanModel
/// with the given fields replaced by the non-null parameter values.
@@ -280,21 +254,18 @@ class _$CreatePlanModelImpl extends _CreatePlanModel {
@pragma('vm:prefer-inline')
_$$CreatePlanModelImplCopyWith<_$CreatePlanModelImpl> get copyWith =>
__$$CreatePlanModelImplCopyWithImpl<_$CreatePlanModelImpl>(
this,
_$identity,
);
this, _$identity);
}
abstract class _CreatePlanModel extends CreatePlanModel {
const factory _CreatePlanModel({
final String? name,
final String? details,
final String? state,
final int? duration,
required final List<bool> type,
final XFile? image,
required final List<PacketOptions> options,
}) = _$CreatePlanModelImpl;
const factory _CreatePlanModel(
{final String? name,
final String? details,
final String? state,
final int? duration,
required final List<bool> type,
final XFile? image,
required final List<PacketOptions> options}) = _$CreatePlanModelImpl;
const _CreatePlanModel._() : super._();
@override