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 'profile_settings_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');
ProfileSettingsModel _$ProfileSettingsModelFromJson(Map<String, dynamic> json) {
return _ProfileSettingsModel.fromJson(json);
@@ -44,26 +43,23 @@ mixin _$ProfileSettingsModel {
/// @nodoc
abstract class $ProfileSettingsModelCopyWith<$Res> {
factory $ProfileSettingsModelCopyWith(
ProfileSettingsModel value,
$Res Function(ProfileSettingsModel) then,
) = _$ProfileSettingsModelCopyWithImpl<$Res, ProfileSettingsModel>;
factory $ProfileSettingsModelCopyWith(ProfileSettingsModel value,
$Res Function(ProfileSettingsModel) then) =
_$ProfileSettingsModelCopyWithImpl<$Res, ProfileSettingsModel>;
@useResult
$Res call({
@JsonKey(name: "new_updates_notifications") dynamic newUpdatesNotifications,
@JsonKey(name: "diary_reminder_notifications")
dynamic diaryReminderNotifications,
@JsonKey(name: "is_mood_fillable") bool isMoodFillable,
@JsonKey(name: "is_bedtime_fillable") bool isBedtimeFillable,
@JsonKey(name: "is_public_profile") bool isPublicProfile,
});
$Res call(
{@JsonKey(name: "new_updates_notifications")
dynamic newUpdatesNotifications,
@JsonKey(name: "diary_reminder_notifications")
dynamic diaryReminderNotifications,
@JsonKey(name: "is_mood_fillable") bool isMoodFillable,
@JsonKey(name: "is_bedtime_fillable") bool isBedtimeFillable,
@JsonKey(name: "is_public_profile") bool isPublicProfile});
}
/// @nodoc
class _$ProfileSettingsModelCopyWithImpl<
$Res,
$Val extends ProfileSettingsModel
>
class _$ProfileSettingsModelCopyWithImpl<$Res,
$Val extends ProfileSettingsModel>
implements $ProfileSettingsModelCopyWith<$Res> {
_$ProfileSettingsModelCopyWithImpl(this._value, this._then);
@@ -83,66 +79,56 @@ class _$ProfileSettingsModelCopyWithImpl<
Object? isBedtimeFillable = null,
Object? isPublicProfile = null,
}) {
return _then(
_value.copyWith(
newUpdatesNotifications:
freezed == newUpdatesNotifications
? _value.newUpdatesNotifications
: newUpdatesNotifications // ignore: cast_nullable_to_non_nullable
as dynamic,
diaryReminderNotifications:
freezed == diaryReminderNotifications
? _value.diaryReminderNotifications
: diaryReminderNotifications // ignore: cast_nullable_to_non_nullable
as dynamic,
isMoodFillable:
null == isMoodFillable
? _value.isMoodFillable
: isMoodFillable // ignore: cast_nullable_to_non_nullable
as bool,
isBedtimeFillable:
null == isBedtimeFillable
? _value.isBedtimeFillable
: isBedtimeFillable // ignore: cast_nullable_to_non_nullable
as bool,
isPublicProfile:
null == isPublicProfile
? _value.isPublicProfile
: isPublicProfile // ignore: cast_nullable_to_non_nullable
as bool,
)
as $Val,
);
return _then(_value.copyWith(
newUpdatesNotifications: freezed == newUpdatesNotifications
? _value.newUpdatesNotifications
: newUpdatesNotifications // ignore: cast_nullable_to_non_nullable
as dynamic,
diaryReminderNotifications: freezed == diaryReminderNotifications
? _value.diaryReminderNotifications
: diaryReminderNotifications // ignore: cast_nullable_to_non_nullable
as dynamic,
isMoodFillable: null == isMoodFillable
? _value.isMoodFillable
: isMoodFillable // ignore: cast_nullable_to_non_nullable
as bool,
isBedtimeFillable: null == isBedtimeFillable
? _value.isBedtimeFillable
: isBedtimeFillable // ignore: cast_nullable_to_non_nullable
as bool,
isPublicProfile: null == isPublicProfile
? _value.isPublicProfile
: isPublicProfile // ignore: cast_nullable_to_non_nullable
as bool,
) as $Val);
}
}
/// @nodoc
abstract class _$$ProfileSettingsModelImplCopyWith<$Res>
implements $ProfileSettingsModelCopyWith<$Res> {
factory _$$ProfileSettingsModelImplCopyWith(
_$ProfileSettingsModelImpl value,
$Res Function(_$ProfileSettingsModelImpl) then,
) = __$$ProfileSettingsModelImplCopyWithImpl<$Res>;
factory _$$ProfileSettingsModelImplCopyWith(_$ProfileSettingsModelImpl value,
$Res Function(_$ProfileSettingsModelImpl) then) =
__$$ProfileSettingsModelImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({
@JsonKey(name: "new_updates_notifications") dynamic newUpdatesNotifications,
@JsonKey(name: "diary_reminder_notifications")
dynamic diaryReminderNotifications,
@JsonKey(name: "is_mood_fillable") bool isMoodFillable,
@JsonKey(name: "is_bedtime_fillable") bool isBedtimeFillable,
@JsonKey(name: "is_public_profile") bool isPublicProfile,
});
$Res call(
{@JsonKey(name: "new_updates_notifications")
dynamic newUpdatesNotifications,
@JsonKey(name: "diary_reminder_notifications")
dynamic diaryReminderNotifications,
@JsonKey(name: "is_mood_fillable") bool isMoodFillable,
@JsonKey(name: "is_bedtime_fillable") bool isBedtimeFillable,
@JsonKey(name: "is_public_profile") bool isPublicProfile});
}
/// @nodoc
class __$$ProfileSettingsModelImplCopyWithImpl<$Res>
extends _$ProfileSettingsModelCopyWithImpl<$Res, _$ProfileSettingsModelImpl>
implements _$$ProfileSettingsModelImplCopyWith<$Res> {
__$$ProfileSettingsModelImplCopyWithImpl(
_$ProfileSettingsModelImpl _value,
$Res Function(_$ProfileSettingsModelImpl) _then,
) : super(_value, _then);
__$$ProfileSettingsModelImplCopyWithImpl(_$ProfileSettingsModelImpl _value,
$Res Function(_$ProfileSettingsModelImpl) _then)
: super(_value, _then);
/// Create a copy of ProfileSettingsModel
/// with the given fields replaced by the non-null parameter values.
@@ -155,50 +141,42 @@ class __$$ProfileSettingsModelImplCopyWithImpl<$Res>
Object? isBedtimeFillable = null,
Object? isPublicProfile = null,
}) {
return _then(
_$ProfileSettingsModelImpl(
newUpdatesNotifications:
freezed == newUpdatesNotifications
? _value.newUpdatesNotifications
: newUpdatesNotifications // ignore: cast_nullable_to_non_nullable
as dynamic,
diaryReminderNotifications:
freezed == diaryReminderNotifications
? _value.diaryReminderNotifications
: diaryReminderNotifications // ignore: cast_nullable_to_non_nullable
as dynamic,
isMoodFillable:
null == isMoodFillable
? _value.isMoodFillable
: isMoodFillable // ignore: cast_nullable_to_non_nullable
as bool,
isBedtimeFillable:
null == isBedtimeFillable
? _value.isBedtimeFillable
: isBedtimeFillable // ignore: cast_nullable_to_non_nullable
as bool,
isPublicProfile:
null == isPublicProfile
? _value.isPublicProfile
: isPublicProfile // ignore: cast_nullable_to_non_nullable
as bool,
),
);
return _then(_$ProfileSettingsModelImpl(
newUpdatesNotifications: freezed == newUpdatesNotifications
? _value.newUpdatesNotifications
: newUpdatesNotifications // ignore: cast_nullable_to_non_nullable
as dynamic,
diaryReminderNotifications: freezed == diaryReminderNotifications
? _value.diaryReminderNotifications
: diaryReminderNotifications // ignore: cast_nullable_to_non_nullable
as dynamic,
isMoodFillable: null == isMoodFillable
? _value.isMoodFillable
: isMoodFillable // ignore: cast_nullable_to_non_nullable
as bool,
isBedtimeFillable: null == isBedtimeFillable
? _value.isBedtimeFillable
: isBedtimeFillable // ignore: cast_nullable_to_non_nullable
as bool,
isPublicProfile: null == isPublicProfile
? _value.isPublicProfile
: isPublicProfile // ignore: cast_nullable_to_non_nullable
as bool,
));
}
}
/// @nodoc
@JsonSerializable()
class _$ProfileSettingsModelImpl implements _ProfileSettingsModel {
const _$ProfileSettingsModelImpl({
@JsonKey(name: "new_updates_notifications")
required this.newUpdatesNotifications,
@JsonKey(name: "diary_reminder_notifications")
required this.diaryReminderNotifications,
@JsonKey(name: "is_mood_fillable") required this.isMoodFillable,
@JsonKey(name: "is_bedtime_fillable") required this.isBedtimeFillable,
@JsonKey(name: "is_public_profile") required this.isPublicProfile,
});
const _$ProfileSettingsModelImpl(
{@JsonKey(name: "new_updates_notifications")
required this.newUpdatesNotifications,
@JsonKey(name: "diary_reminder_notifications")
required this.diaryReminderNotifications,
@JsonKey(name: "is_mood_fillable") required this.isMoodFillable,
@JsonKey(name: "is_bedtime_fillable") required this.isBedtimeFillable,
@JsonKey(name: "is_public_profile") required this.isPublicProfile});
factory _$ProfileSettingsModelImpl.fromJson(Map<String, dynamic> json) =>
_$$ProfileSettingsModelImplFromJson(json);
@@ -230,13 +208,9 @@ class _$ProfileSettingsModelImpl implements _ProfileSettingsModel {
(other.runtimeType == runtimeType &&
other is _$ProfileSettingsModelImpl &&
const DeepCollectionEquality().equals(
other.newUpdatesNotifications,
newUpdatesNotifications,
) &&
other.newUpdatesNotifications, newUpdatesNotifications) &&
const DeepCollectionEquality().equals(
other.diaryReminderNotifications,
diaryReminderNotifications,
) &&
other.diaryReminderNotifications, diaryReminderNotifications) &&
(identical(other.isMoodFillable, isMoodFillable) ||
other.isMoodFillable == isMoodFillable) &&
(identical(other.isBedtimeFillable, isBedtimeFillable) ||
@@ -248,13 +222,12 @@ class _$ProfileSettingsModelImpl implements _ProfileSettingsModel {
@JsonKey(includeFromJson: false, includeToJson: false)
@override
int get hashCode => Object.hash(
runtimeType,
const DeepCollectionEquality().hash(newUpdatesNotifications),
const DeepCollectionEquality().hash(diaryReminderNotifications),
isMoodFillable,
isBedtimeFillable,
isPublicProfile,
);
runtimeType,
const DeepCollectionEquality().hash(newUpdatesNotifications),
const DeepCollectionEquality().hash(diaryReminderNotifications),
isMoodFillable,
isBedtimeFillable,
isPublicProfile);
/// Create a copy of ProfileSettingsModel
/// with the given fields replaced by the non-null parameter values.
@@ -262,28 +235,29 @@ class _$ProfileSettingsModelImpl implements _ProfileSettingsModel {
@override
@pragma('vm:prefer-inline')
_$$ProfileSettingsModelImplCopyWith<_$ProfileSettingsModelImpl>
get copyWith =>
__$$ProfileSettingsModelImplCopyWithImpl<_$ProfileSettingsModelImpl>(
this,
_$identity,
);
get copyWith =>
__$$ProfileSettingsModelImplCopyWithImpl<_$ProfileSettingsModelImpl>(
this, _$identity);
@override
Map<String, dynamic> toJson() {
return _$$ProfileSettingsModelImplToJson(this);
return _$$ProfileSettingsModelImplToJson(
this,
);
}
}
abstract class _ProfileSettingsModel implements ProfileSettingsModel {
const factory _ProfileSettingsModel({
@JsonKey(name: "new_updates_notifications")
required final dynamic newUpdatesNotifications,
@JsonKey(name: "diary_reminder_notifications")
required final dynamic diaryReminderNotifications,
@JsonKey(name: "is_mood_fillable") required final bool isMoodFillable,
@JsonKey(name: "is_bedtime_fillable") required final bool isBedtimeFillable,
@JsonKey(name: "is_public_profile") required final bool isPublicProfile,
}) = _$ProfileSettingsModelImpl;
const factory _ProfileSettingsModel(
{@JsonKey(name: "new_updates_notifications")
required final dynamic newUpdatesNotifications,
@JsonKey(name: "diary_reminder_notifications")
required final dynamic diaryReminderNotifications,
@JsonKey(name: "is_mood_fillable") required final bool isMoodFillable,
@JsonKey(name: "is_bedtime_fillable")
required final bool isBedtimeFillable,
@JsonKey(name: "is_public_profile")
required final bool isPublicProfile}) = _$ProfileSettingsModelImpl;
factory _ProfileSettingsModel.fromJson(Map<String, dynamic> json) =
_$ProfileSettingsModelImpl.fromJson;
@@ -309,5 +283,5 @@ abstract class _ProfileSettingsModel implements ProfileSettingsModel {
@override
@JsonKey(includeFromJson: false, includeToJson: false)
_$$ProfileSettingsModelImplCopyWith<_$ProfileSettingsModelImpl>
get copyWith => throw _privateConstructorUsedError;
get copyWith => throw _privateConstructorUsedError;
}

View File

@@ -7,21 +7,21 @@ part of 'profile_settings_model.dart';
// **************************************************************************
_$ProfileSettingsModelImpl _$$ProfileSettingsModelImplFromJson(
Map<String, dynamic> json,
) => _$ProfileSettingsModelImpl(
newUpdatesNotifications: json['new_updates_notifications'],
diaryReminderNotifications: json['diary_reminder_notifications'],
isMoodFillable: json['is_mood_fillable'] as bool,
isBedtimeFillable: json['is_bedtime_fillable'] as bool,
isPublicProfile: json['is_public_profile'] as bool,
);
Map<String, dynamic> json) =>
_$ProfileSettingsModelImpl(
newUpdatesNotifications: json['new_updates_notifications'],
diaryReminderNotifications: json['diary_reminder_notifications'],
isMoodFillable: json['is_mood_fillable'] as bool,
isBedtimeFillable: json['is_bedtime_fillable'] as bool,
isPublicProfile: json['is_public_profile'] as bool,
);
Map<String, dynamic> _$$ProfileSettingsModelImplToJson(
_$ProfileSettingsModelImpl instance,
) => <String, dynamic>{
'new_updates_notifications': instance.newUpdatesNotifications,
'diary_reminder_notifications': instance.diaryReminderNotifications,
'is_mood_fillable': instance.isMoodFillable,
'is_bedtime_fillable': instance.isBedtimeFillable,
'is_public_profile': instance.isPublicProfile,
};
_$ProfileSettingsModelImpl instance) =>
<String, dynamic>{
'new_updates_notifications': instance.newUpdatesNotifications,
'diary_reminder_notifications': instance.diaryReminderNotifications,
'is_mood_fillable': instance.isMoodFillable,
'is_bedtime_fillable': instance.isBedtimeFillable,
'is_public_profile': instance.isPublicProfile,
};