Skip to content

基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。

remove tooltop in history card

Predidit6997184dfccd
diff --git a/lib/bean/card/bangumi_history_card.dart b/lib/bean/card/bangumi_history_card.dart
index 69d73fc6..0c896796 100644
--- a/lib/bean/card/bangumi_history_card.dart
+++ b/lib/bean/card/bangumi_history_card.dart
@@ -38,20 +38,17 @@ class _BangumiHistoryCardVState extends State<BangumiHistoryCardV> {
bool showTitle = false,
}) {
final message = '$title: $value';
- return Tooltip(
- message: message,
- child: Chip(
- shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(32)),
- backgroundColor: Theme.of(context).colorScheme.secondaryContainer,
- materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
- padding: const EdgeInsets.symmetric(horizontal: 2),
- side: BorderSide.none,
- label: Text(
- showTitle ? message : value,
- style: Theme.of(context).textTheme.labelSmall,
- overflow: TextOverflow.ellipsis,
- maxLines: 1,
- ),
+ return Chip(
+ shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(32)),
+ backgroundColor: Theme.of(context).colorScheme.secondaryContainer,
+ materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
+ padding: const EdgeInsets.symmetric(horizontal: 2),
+ side: BorderSide.none,
+ label: Text(
+ showTitle ? message : value,
+ style: Theme.of(context).textTheme.labelSmall,
+ overflow: TextOverflow.ellipsis,
+ maxLines: 1,
),
);
}
diff --git a/lib/pages/history/history_page.dart b/lib/pages/history/history_page.dart
index eed5a413..f3103e22 100644
--- a/lib/pages/history/history_page.dart
+++ b/lib/pages/history/history_page.dart
@@ -6,7 +6,6 @@ import 'package:kazumi/bean/card/bangumi_history_card.dart';
import 'package:kazumi/bean/dialog/dialog_helper.dart';
import 'package:kazumi/pages/history/history_controller.dart';
import 'package:kazumi/utils/constants.dart';
-import 'package:kazumi/utils/utils.dart';
class HistoryPage extends StatefulWidget {
const HistoryPage({super.key});