mirror of
https://github.com/immich-app/immich.git
synced 2024-12-28 22:51:59 +00:00
Revert "chore(mobile): thumbnail image ui improvements (#13655)"
This reverts commit 16f2364e93
.
This commit is contained in:
parent
68a4cc25dc
commit
143ee0bc34
1 changed files with 32 additions and 54 deletions
|
@ -138,31 +138,10 @@ class ThumbnailImage extends ConsumerWidget {
|
||||||
tag: isFromDto
|
tag: isFromDto
|
||||||
? '${asset.remoteId}-$heroOffset'
|
? '${asset.remoteId}-$heroOffset'
|
||||||
: asset.id + heroOffset,
|
: asset.id + heroOffset,
|
||||||
child: Stack(
|
child: ImmichThumbnail(
|
||||||
children: [
|
asset: asset,
|
||||||
ImmichThumbnail(
|
height: 250,
|
||||||
asset: asset,
|
width: 250,
|
||||||
height: 250,
|
|
||||||
width: 250,
|
|
||||||
),
|
|
||||||
Container(
|
|
||||||
height: 250,
|
|
||||||
width: 250,
|
|
||||||
decoration: const BoxDecoration(
|
|
||||||
gradient: LinearGradient(
|
|
||||||
colors: [
|
|
||||||
Color.fromRGBO(0, 0, 0, 0.1),
|
|
||||||
Colors.transparent,
|
|
||||||
Colors.transparent,
|
|
||||||
Color.fromRGBO(0, 0, 0, 0.1),
|
|
||||||
],
|
|
||||||
begin: Alignment.topCenter,
|
|
||||||
end: Alignment.bottomCenter,
|
|
||||||
stops: [0, 0.3, 0.6, 1],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
@ -174,8 +153,11 @@ class ThumbnailImage extends ConsumerWidget {
|
||||||
color: canDeselect ? assetContainerColor : Colors.grey,
|
color: canDeselect ? assetContainerColor : Colors.grey,
|
||||||
),
|
),
|
||||||
child: ClipRRect(
|
child: ClipRRect(
|
||||||
borderRadius: const BorderRadius.all(
|
borderRadius: const BorderRadius.only(
|
||||||
Radius.circular(15.0),
|
topRight: Radius.circular(15.0),
|
||||||
|
bottomRight: Radius.circular(15.0),
|
||||||
|
bottomLeft: Radius.circular(15.0),
|
||||||
|
topLeft: Radius.zero,
|
||||||
),
|
),
|
||||||
child: image,
|
child: image,
|
||||||
),
|
),
|
||||||
|
@ -195,33 +177,7 @@ class ThumbnailImage extends ConsumerWidget {
|
||||||
)
|
)
|
||||||
: const Border(),
|
: const Border(),
|
||||||
),
|
),
|
||||||
child: Stack(
|
child: buildImage(),
|
||||||
children: [
|
|
||||||
buildImage(),
|
|
||||||
if (showStorageIndicator)
|
|
||||||
Positioned(
|
|
||||||
right: 8,
|
|
||||||
bottom: 5,
|
|
||||||
child: Icon(
|
|
||||||
storageIcon(asset),
|
|
||||||
color: Colors.white.withOpacity(.8),
|
|
||||||
size: 16,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
if (asset.isFavorite)
|
|
||||||
const Positioned(
|
|
||||||
left: 8,
|
|
||||||
bottom: 5,
|
|
||||||
child: Icon(
|
|
||||||
Icons.favorite,
|
|
||||||
color: Colors.white,
|
|
||||||
size: 16,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
if (!asset.isImage) buildVideoIcon(),
|
|
||||||
if (asset.stackCount > 0) buildStackIcon(),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
if (multiselectEnabled)
|
if (multiselectEnabled)
|
||||||
Padding(
|
Padding(
|
||||||
|
@ -231,6 +187,28 @@ class ThumbnailImage extends ConsumerWidget {
|
||||||
child: buildSelectionIcon(asset),
|
child: buildSelectionIcon(asset),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
if (showStorageIndicator)
|
||||||
|
Positioned(
|
||||||
|
right: 8,
|
||||||
|
bottom: 5,
|
||||||
|
child: Icon(
|
||||||
|
storageIcon(asset),
|
||||||
|
color: Colors.white.withOpacity(.8),
|
||||||
|
size: 16,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
if (asset.isFavorite)
|
||||||
|
const Positioned(
|
||||||
|
left: 8,
|
||||||
|
bottom: 5,
|
||||||
|
child: Icon(
|
||||||
|
Icons.favorite,
|
||||||
|
color: Colors.white,
|
||||||
|
size: 18,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
if (!asset.isImage) buildVideoIcon(),
|
||||||
|
if (asset.stackCount > 0) buildStackIcon(),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue