Compare commits

...

2 Commits

Author SHA1 Message Date
Alex
fe4c6c6365 default thumbnail size 2024-11-19 11:49:08 -06:00
Alex
63ed6283fc feat(mobile): smaller default local thumbnail size 2024-11-18 17:41:56 -06:00
2 changed files with 3 additions and 3 deletions

View File

@@ -18,8 +18,8 @@ class ImmichLocalThumbnailProvider
ImmichLocalThumbnailProvider({ ImmichLocalThumbnailProvider({
required this.asset, required this.asset,
this.height = 256, this.height = 128,
this.width = 256, this.width = 128,
}) : assert(asset.local != null, 'Only usable when asset.local is set'); }) : assert(asset.local != null, 'Only usable when asset.local is set');
/// Converts an [ImageProvider]'s settings plus an [ImageConfiguration] to a key /// Converts an [ImageProvider]'s settings plus an [ImageConfiguration] to a key

View File

@@ -31,7 +31,7 @@ class ImmichThumbnail extends HookWidget {
static ImageProvider imageProvider({ static ImageProvider imageProvider({
Asset? asset, Asset? asset,
String? assetId, String? assetId,
int thumbnailSize = 256, int thumbnailSize = 128,
}) { }) {
if (asset == null && assetId == null) { if (asset == null && assetId == null) {
throw Exception('Must supply either asset or assetId'); throw Exception('Must supply either asset or assetId');