mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-10 19:20:12 +08:00
@@ -3,6 +3,7 @@ import 'dart:math';
|
||||
import 'package:PiliPlus/common/style.dart';
|
||||
import 'package:PiliPlus/common/widgets/badge.dart';
|
||||
import 'package:PiliPlus/common/widgets/button/icon_button.dart';
|
||||
import 'package:PiliPlus/common/widgets/custom_icon.dart';
|
||||
import 'package:PiliPlus/common/widgets/dialog/dialog.dart';
|
||||
import 'package:PiliPlus/common/widgets/image/network_img_layer.dart';
|
||||
import 'package:PiliPlus/common/widgets/image_viewer/hero.dart';
|
||||
@@ -426,6 +427,11 @@ class _PgcIntroPageState extends State<PgcIntroPage> {
|
||||
text: NumUtils.numFormat(item.stat!.favorite),
|
||||
),
|
||||
),
|
||||
ActionItem(
|
||||
icon: const Icon(CustomIcons.download),
|
||||
onTap: () => videoDetailCtr.onDownload(context),
|
||||
text: '缓存',
|
||||
),
|
||||
Obx(
|
||||
() => ActionItem(
|
||||
icon: const Icon(FontAwesomeIcons.clock),
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import 'package:PiliPlus/common/constants.dart';
|
||||
import 'package:PiliPlus/common/style.dart';
|
||||
import 'package:PiliPlus/common/widgets/custom_icon.dart';
|
||||
import 'package:PiliPlus/common/widgets/dialog/dialog.dart';
|
||||
import 'package:PiliPlus/common/widgets/gesture/tap_gesture_recognizer.dart';
|
||||
import 'package:PiliPlus/common/widgets/image/network_img_layer.dart';
|
||||
@@ -524,17 +525,17 @@ class _UgcIntroPanelState extends State<UgcIntroPanel> {
|
||||
onCancelTriple: introController.onCancelTriple,
|
||||
),
|
||||
),
|
||||
Obx(
|
||||
() => ActionItem(
|
||||
icon: const Icon(FontAwesomeIcons.thumbsDown),
|
||||
selectIcon: const Icon(FontAwesomeIcons.solidThumbsDown),
|
||||
onTap: () => introController.handleAction(
|
||||
introController.actionDislikeVideo,
|
||||
),
|
||||
selectStatus: introController.hasDislike.value,
|
||||
text: "点踩",
|
||||
),
|
||||
),
|
||||
// Obx(
|
||||
// () => ActionItem(
|
||||
// icon: const Icon(FontAwesomeIcons.thumbsDown),
|
||||
// selectIcon: const Icon(FontAwesomeIcons.solidThumbsDown),
|
||||
// onTap: () => introController.handleAction(
|
||||
// introController.actionDislikeVideo,
|
||||
// ),
|
||||
// selectStatus: introController.hasDislike.value,
|
||||
// text: "点踩",
|
||||
// ),
|
||||
// ),
|
||||
Obx(
|
||||
() => ActionItem(
|
||||
animation: introController.tripleAnimation,
|
||||
@@ -563,6 +564,11 @@ class _UgcIntroPanelState extends State<UgcIntroPanel> {
|
||||
: null,
|
||||
),
|
||||
),
|
||||
ActionItem(
|
||||
icon: const Icon(CustomIcons.download),
|
||||
onTap: () => videoDetailCtr.onDownload(context),
|
||||
text: '缓存',
|
||||
),
|
||||
Obx(
|
||||
() => ActionItem(
|
||||
icon: const Icon(FontAwesomeIcons.clock),
|
||||
|
||||
@@ -1830,6 +1830,15 @@ class HeaderControlState extends State<HeaderControl>
|
||||
),
|
||||
),
|
||||
),
|
||||
SizedBox(
|
||||
width: btnWidth,
|
||||
height: btnHeight,
|
||||
child: ActionItem(
|
||||
expand: false,
|
||||
icon: const Icon(CustomIcons.download, color: Colors.white),
|
||||
onTap: () => videoDetailCtr.onDownload(context),
|
||||
),
|
||||
),
|
||||
SizedBox(
|
||||
width: btnWidth,
|
||||
height: btnHeight,
|
||||
|
||||
Reference in New Issue
Block a user