基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。
tiny fix in history edit mode
Prediditc77b504a7191
diff --git a/lib/bean/card/bangumi_history_card.dart b/lib/bean/card/bangumi_history_card.dartindex 468f4bb8..23a9a6b1 100644--- a/lib/bean/card/bangumi_history_card.dart+++ b/lib/bean/card/bangumi_history_card.dart@@ -15,7 +15,8 @@ import 'package:kazumi/utils/logger.dart';// 视频历史记录卡片 - 水平布局class BangumiHistoryCardV extends StatefulWidget {- const BangumiHistoryCardV({super.key, required this.historyItem, this.showDelete = true});+ const BangumiHistoryCardV(+ {super.key, required this.historyItem, this.showDelete = true});final History historyItem;final bool showDelete;@@ -33,8 +34,9 @@ class _BangumiHistoryCardVState extends State<BangumiHistoryCardV> {@overrideWidget build(BuildContext context) {- TextStyle style =- TextStyle(fontSize: Theme.of(context).textTheme.labelMedium!.fontSize, overflow: TextOverflow.ellipsis);+ TextStyle style = TextStyle(+ fontSize: Theme.of(context).textTheme.labelMedium!.fontSize,+ overflow: TextOverflow.ellipsis);final InfoController infoController = Modular.get<InfoController>();final FavoriteController favoriteController =Modular.get<FavoriteController>();@@ -45,6 +47,11 @@ class _BangumiHistoryCardVState extends State<BangumiHistoryCardV> {color: Theme.of(context).colorScheme.secondaryContainer,child: InkWell(onTap: () async {+ if (widget.showDelete) {+ SmartDialog.showToast('编辑模式',+ displayType: SmartToastType.onlyRefresh);+ return;+ }SmartDialog.showLoading(msg: '获取中');bool flag = false;for (Plugin plugin in pluginsController.pluginList) {@@ -135,8 +142,7 @@ class _BangumiHistoryCardVState extends State<BangumiHistoryCardV> {style: style),Text('上次看到: 第${widget.historyItem.lastWatchEpisode}话',style: style),- Text(- '排名: ${widget.historyItem.bangumiItem.rank}',+ Text('排名: ${widget.historyItem.bangumiItem.rank}',style: style),Text(widget.historyItem.bangumiItem.type == 2@@ -166,12 +172,15 @@ class _BangumiHistoryCardVState extends State<BangumiHistoryCardV> {});},),- widget.showDelete ? IconButton(- icon: const Icon(Icons.delete),- onPressed: () {- historyController.deleteHistory(widget.historyItem);- },- ) : Container(),+ widget.showDelete+ ? IconButton(+ icon: const Icon(Icons.delete),+ onPressed: () {+ historyController+ .deleteHistory(widget.historyItem);+ },+ )+ : Container(),],),],