mirror of
https://github.com/immich-app/immich.git
synced 2024-12-25 10:43:13 +02:00
c5504aae6e
* refactor: migrate album sort option to provider * refactor: use sort order in add to album sheet list * test(mobile): album_sort_options_provider unit tests * refactor: sort shared albums with user selected sort * refactor: use listview to render shared albums * refactor: rename to AlbumSortByOptions * refactor: remove filtering inside sort functions * font size --------- Co-authored-by: shalong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
38 lines
865 B
Dart
38 lines
865 B
Dart
import 'package:immich_mobile/shared/models/asset.dart';
|
|
|
|
final class AssetStub {
|
|
const AssetStub._();
|
|
|
|
static final image1 = Asset(
|
|
checksum: "image1-checksum",
|
|
localId: "image1",
|
|
ownerId: 1,
|
|
fileCreatedAt: DateTime.now(),
|
|
fileModifiedAt: DateTime.now(),
|
|
updatedAt: DateTime.now(),
|
|
durationInSeconds: 0,
|
|
type: AssetType.image,
|
|
fileName: "image1.jpg",
|
|
isFavorite: true,
|
|
isArchived: false,
|
|
isTrashed: false,
|
|
stackCount: 0,
|
|
);
|
|
|
|
static final image2 = Asset(
|
|
checksum: "image2-checksum",
|
|
localId: "image2",
|
|
ownerId: 1,
|
|
fileCreatedAt: DateTime(2000),
|
|
fileModifiedAt: DateTime(2010),
|
|
updatedAt: DateTime.now(),
|
|
durationInSeconds: 60,
|
|
type: AssetType.video,
|
|
fileName: "image2.jpg",
|
|
isFavorite: false,
|
|
isArchived: false,
|
|
isTrashed: false,
|
|
stackCount: 0,
|
|
);
|
|
}
|