|
@@ -25,6 +25,7 @@ class ThumbnailWidget extends StatefulWidget {
|
|
|
final BoxFit fit;
|
|
|
final bool shouldShowSyncStatus;
|
|
|
final bool shouldShowArchiveStatus;
|
|
|
+ final bool shouldShowPinIcon;
|
|
|
final bool showFavForAlbumOnly;
|
|
|
final bool shouldShowLivePhotoOverlay;
|
|
|
final Duration? diskLoadDeferDuration;
|
|
@@ -39,6 +40,7 @@ class ThumbnailWidget extends StatefulWidget {
|
|
|
this.shouldShowSyncStatus = true,
|
|
|
this.shouldShowLivePhotoOverlay = false,
|
|
|
this.shouldShowArchiveStatus = false,
|
|
|
+ this.shouldShowPinIcon = false,
|
|
|
this.showFavForAlbumOnly = false,
|
|
|
this.shouldShowOwnerAvatar = false,
|
|
|
this.diskLoadDeferDuration,
|
|
@@ -191,6 +193,9 @@ class _ThumbnailWidgetState extends State<ThumbnailWidget> {
|
|
|
if (widget.shouldShowArchiveStatus) {
|
|
|
viewChildren.add(const ArchiveOverlayIcon());
|
|
|
}
|
|
|
+ if (widget.shouldShowPinIcon) {
|
|
|
+ viewChildren.add(const PinOverlayIcon());
|
|
|
+ }
|
|
|
|
|
|
return Stack(
|
|
|
fit: StackFit.expand,
|