feat: splash

This commit is contained in:
Alex
2024-11-29 14:43:09 +03:00
parent 9e773e60e6
commit b6daad071b
66 changed files with 249 additions and 112 deletions

View File

@@ -34,7 +34,7 @@ class MealModel with _$MealModel {
const factory MealModel({
@JsonKey(name: "id") required int id,
@JsonKey(name: "time") required String time,
@JsonKey(name: "type") required int type,
@JsonKey(name: "type_no") required int typeNumber,
@JsonKey(name: "satiety") required int satiety,
@JsonKey(name: "mood") required int mood,
@JsonKey(name: "portions") required List<Portion> portions,

View File

@@ -538,8 +538,8 @@ mixin _$MealModel {
int get id => throw _privateConstructorUsedError;
@JsonKey(name: "time")
String get time => throw _privateConstructorUsedError;
@JsonKey(name: "type")
int get type => throw _privateConstructorUsedError;
@JsonKey(name: "type_no")
int get typeNumber => throw _privateConstructorUsedError;
@JsonKey(name: "satiety")
int get satiety => throw _privateConstructorUsedError;
@JsonKey(name: "mood")
@@ -567,7 +567,7 @@ abstract class $MealModelCopyWith<$Res> {
$Res call(
{@JsonKey(name: "id") int id,
@JsonKey(name: "time") String time,
@JsonKey(name: "type") int type,
@JsonKey(name: "type_no") int typeNumber,
@JsonKey(name: "satiety") int satiety,
@JsonKey(name: "mood") int mood,
@JsonKey(name: "portions") List<Portion> portions,
@@ -591,7 +591,7 @@ class _$MealModelCopyWithImpl<$Res, $Val extends MealModel>
$Res call({
Object? id = null,
Object? time = null,
Object? type = null,
Object? typeNumber = null,
Object? satiety = null,
Object? mood = null,
Object? portions = null,
@@ -606,9 +606,9 @@ class _$MealModelCopyWithImpl<$Res, $Val extends MealModel>
? _value.time
: time // ignore: cast_nullable_to_non_nullable
as String,
type: null == type
? _value.type
: type // ignore: cast_nullable_to_non_nullable
typeNumber: null == typeNumber
? _value.typeNumber
: typeNumber // ignore: cast_nullable_to_non_nullable
as int,
satiety: null == satiety
? _value.satiety
@@ -641,7 +641,7 @@ abstract class _$$MealModelImplCopyWith<$Res>
$Res call(
{@JsonKey(name: "id") int id,
@JsonKey(name: "time") String time,
@JsonKey(name: "type") int type,
@JsonKey(name: "type_no") int typeNumber,
@JsonKey(name: "satiety") int satiety,
@JsonKey(name: "mood") int mood,
@JsonKey(name: "portions") List<Portion> portions,
@@ -663,7 +663,7 @@ class __$$MealModelImplCopyWithImpl<$Res>
$Res call({
Object? id = null,
Object? time = null,
Object? type = null,
Object? typeNumber = null,
Object? satiety = null,
Object? mood = null,
Object? portions = null,
@@ -678,9 +678,9 @@ class __$$MealModelImplCopyWithImpl<$Res>
? _value.time
: time // ignore: cast_nullable_to_non_nullable
as String,
type: null == type
? _value.type
: type // ignore: cast_nullable_to_non_nullable
typeNumber: null == typeNumber
? _value.typeNumber
: typeNumber // ignore: cast_nullable_to_non_nullable
as int,
satiety: null == satiety
? _value.satiety
@@ -708,7 +708,7 @@ class _$MealModelImpl implements _MealModel {
const _$MealModelImpl(
{@JsonKey(name: "id") required this.id,
@JsonKey(name: "time") required this.time,
@JsonKey(name: "type") required this.type,
@JsonKey(name: "type_no") required this.typeNumber,
@JsonKey(name: "satiety") required this.satiety,
@JsonKey(name: "mood") required this.mood,
@JsonKey(name: "portions") required final List<Portion> portions,
@@ -726,8 +726,8 @@ class _$MealModelImpl implements _MealModel {
@JsonKey(name: "time")
final String time;
@override
@JsonKey(name: "type")
final int type;
@JsonKey(name: "type_no")
final int typeNumber;
@override
@JsonKey(name: "satiety")
final int satiety;
@@ -754,7 +754,7 @@ class _$MealModelImpl implements _MealModel {
@override
String toString() {
return 'MealModel(id: $id, time: $time, type: $type, satiety: $satiety, mood: $mood, portions: $portions, photos: $photos)';
return 'MealModel(id: $id, time: $time, typeNumber: $typeNumber, satiety: $satiety, mood: $mood, portions: $portions, photos: $photos)';
}
@override
@@ -764,7 +764,8 @@ class _$MealModelImpl implements _MealModel {
other is _$MealModelImpl &&
(identical(other.id, id) || other.id == id) &&
(identical(other.time, time) || other.time == time) &&
(identical(other.type, type) || other.type == type) &&
(identical(other.typeNumber, typeNumber) ||
other.typeNumber == typeNumber) &&
(identical(other.satiety, satiety) || other.satiety == satiety) &&
(identical(other.mood, mood) || other.mood == mood) &&
const DeepCollectionEquality().equals(other._portions, _portions) &&
@@ -777,7 +778,7 @@ class _$MealModelImpl implements _MealModel {
runtimeType,
id,
time,
type,
typeNumber,
satiety,
mood,
const DeepCollectionEquality().hash(_portions),
@@ -803,7 +804,7 @@ abstract class _MealModel implements MealModel {
const factory _MealModel(
{@JsonKey(name: "id") required final int id,
@JsonKey(name: "time") required final String time,
@JsonKey(name: "type") required final int type,
@JsonKey(name: "type_no") required final int typeNumber,
@JsonKey(name: "satiety") required final int satiety,
@JsonKey(name: "mood") required final int mood,
@JsonKey(name: "portions") required final List<Portion> portions,
@@ -820,8 +821,8 @@ abstract class _MealModel implements MealModel {
@JsonKey(name: "time")
String get time;
@override
@JsonKey(name: "type")
int get type;
@JsonKey(name: "type_no")
int get typeNumber;
@override
@JsonKey(name: "satiety")
int get satiety;

View File

@@ -49,7 +49,7 @@ _$MealModelImpl _$$MealModelImplFromJson(Map<String, dynamic> json) =>
_$MealModelImpl(
id: (json['id'] as num).toInt(),
time: json['time'] as String,
type: (json['type'] as num).toInt(),
typeNumber: (json['type_no'] as num).toInt(),
satiety: (json['satiety'] as num).toInt(),
mood: (json['mood'] as num).toInt(),
portions: (json['portions'] as List<dynamic>)
@@ -64,7 +64,7 @@ Map<String, dynamic> _$$MealModelImplToJson(_$MealModelImpl instance) =>
<String, dynamic>{
'id': instance.id,
'time': instance.time,
'type': instance.type,
'type_no': instance.typeNumber,
'satiety': instance.satiety,
'mood': instance.mood,
'portions': instance.portions,