mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
fix: Improve watched logic for posters
This commit is contained in:
parent
a3ccb6009c
commit
0739247836
2 changed files with 3 additions and 2 deletions
|
|
@ -111,6 +111,8 @@ class ItemBaseModel with ItemBaseModelMappable {
|
||||||
|
|
||||||
bool get unWatched => !userData.played && userData.progress <= 0 && userData.unPlayedItemCount == 0;
|
bool get unWatched => !userData.played && userData.progress <= 0 && userData.unPlayedItemCount == 0;
|
||||||
|
|
||||||
|
bool get watched => userData.played;
|
||||||
|
|
||||||
String? detailedName(BuildContext context) => "$name${overview.yearAired != null ? " (${overview.yearAired})" : ""}";
|
String? detailedName(BuildContext context) => "$name${overview.yearAired != null ? " (${overview.yearAired})" : ""}";
|
||||||
|
|
||||||
String? get subText => null;
|
String? get subText => null;
|
||||||
|
|
|
||||||
|
|
@ -196,8 +196,7 @@ class PosterImage extends ConsumerWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (poster is! PhotoAlbumModel && (poster.unPlayedItemCount != null && poster is SeriesModel) ||
|
if ((poster.unPlayedItemCount != null && poster is SeriesModel) || poster.watched)
|
||||||
(poster.playAble && !poster.unWatched))
|
|
||||||
IgnorePointer(
|
IgnorePointer(
|
||||||
child: Align(
|
child: Align(
|
||||||
alignment: Alignment.topRight,
|
alignment: Alignment.topRight,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue