opt: enum (#824)

* opt: enum

* opt: member page type
This commit is contained in:
My-Responsitories
2025-05-06 00:18:30 +08:00
committed by GitHub
parent 1da30d5d8f
commit a915650bb6
24 changed files with 211 additions and 291 deletions

View File

@@ -145,8 +145,7 @@ class HistoryItem extends StatelessWidget {
width: maxWidth,
height: maxHeight,
),
if (!HistoryBusinessType
.hiddenDurationType.hiddenDurationType
if (!HistoryBusinessType.hiddenDurationType
.contains(videoItem.history.business))
PBadge(
text: videoItem.progress == -1
@@ -157,7 +156,7 @@ class HistoryItem extends StatelessWidget {
type: 'gray',
),
// 右上角
if (HistoryBusinessType.showBadge.showBadge
if (HistoryBusinessType.showBadge
.contains(videoItem.history.business) ||
videoItem.history.business ==
HistoryBusinessType.live.type)