Lazy Loading & Pagination, Alpha Channel -> White Conversion, Add Height & Width to DB & API

This commit is contained in:
2021-02-28 19:23:41 -05:00
parent 6827a2994a
commit 745d843af7
18 changed files with 427 additions and 284 deletions

View File

@@ -188,13 +188,26 @@ class MediaItems$Query$MediaItemResponse$MediaItem with EquatableMixin {
bool isVideo;
int width;
int height;
String origName;
DateTime createdAt;
@override
List<Object> get props =>
[id, fileName, latitude, longitude, isVideo, origName, createdAt];
List<Object> get props => [
id,
fileName,
latitude,
longitude,
isVideo,
width,
height,
origName,
createdAt
];
Map<String, dynamic> toJson() =>
_$MediaItems$Query$MediaItemResponse$MediaItemToJson(this);
}
@@ -976,6 +989,18 @@ class MediaItemsQuery
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: 'width'),
alias: null,
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: 'height'),
alias: null,
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: 'origName'),
alias: null,

View File

@@ -201,6 +201,8 @@ MediaItems$Query$MediaItemResponse$MediaItem
..latitude = (json['latitude'] as num)?.toDouble()
..longitude = (json['longitude'] as num)?.toDouble()
..isVideo = json['isVideo'] as bool
..width = json['width'] as int
..height = json['height'] as int
..origName = json['origName'] as String
..createdAt = json['createdAt'] == null
? null
@@ -215,6 +217,8 @@ Map<String, dynamic> _$MediaItems$Query$MediaItemResponse$MediaItemToJson(
'latitude': instance.latitude,
'longitude': instance.longitude,
'isVideo': instance.isVideo,
'width': instance.width,
'height': instance.height,
'origName': instance.origName,
'createdAt': instance.createdAt?.toIso8601String(),
};