Prepare Lunaris 1.1.2 experimental

This commit is contained in:
2026-05-26 11:43:25 +03:00
parent 369dee02be
commit 9cff9e5307
42 changed files with 2041 additions and 303 deletions
+36
View File
@@ -35,6 +35,42 @@ class Post {
String get cacheKey => '$providerId:$id';
Post copyWith({
String? id,
String? providerId,
String? providerName,
String? previewUrl,
String? sampleUrl,
String? fileUrl,
List<String>? tags,
String? rating,
int? width,
int? height,
String? source,
DateTime? createdAt,
String? fileType,
int? score,
Map<String, List<String>>? tagGroups,
}) {
return Post(
id: id ?? this.id,
providerId: providerId ?? this.providerId,
providerName: providerName ?? this.providerName,
previewUrl: previewUrl ?? this.previewUrl,
sampleUrl: sampleUrl ?? this.sampleUrl,
fileUrl: fileUrl ?? this.fileUrl,
tags: tags ?? this.tags,
rating: rating ?? this.rating,
width: width ?? this.width,
height: height ?? this.height,
source: source ?? this.source,
createdAt: createdAt ?? this.createdAt,
fileType: fileType ?? this.fileType,
score: score ?? this.score,
tagGroups: tagGroups ?? this.tagGroups,
);
}
Map<String, dynamic> toJson() => {
'id': id,
'providerId': providerId,