mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-08-03 01:00:14 +08:00
Binary file not shown.
@@ -19,13 +19,19 @@ abstract final class BiliIcons {
|
|||||||
static const IconData ic_liked = IconData(0xe80a, fontFamily: _kFontFam);
|
static const IconData ic_liked = IconData(0xe80a, fontFamily: _kFontFam);
|
||||||
static const IconData ic_share = IconData(0xe80b, fontFamily: _kFontFam);
|
static const IconData ic_share = IconData(0xe80b, fontFamily: _kFontFam);
|
||||||
static const IconData live_reserve = IconData(0xe80c, fontFamily: _kFontFam);
|
static const IconData live_reserve = IconData(0xe80c, fontFamily: _kFontFam);
|
||||||
static const IconData star_favorite_line = IconData(0xe80d, fontFamily: _kFontFam);
|
static const IconData topbar_coin = IconData(0xe80d, fontFamily: _kFontFam);
|
||||||
static const IconData star_favorite_solid = IconData(0xe80e, fontFamily: _kFontFam);
|
static const IconData topbar_coined = IconData(0xe80e, fontFamily: _kFontFam);
|
||||||
static const IconData topic_tag = IconData(0xe80f, fontFamily: _kFontFam);
|
static const IconData topbar_favorite = IconData(0xe80f, fontFamily: _kFontFam);
|
||||||
static const IconData ugcvideo_ic_coin = IconData(0xe810, fontFamily: _kFontFam);
|
static const IconData topbar_favorited = IconData(0xe810, fontFamily: _kFontFam);
|
||||||
static const IconData ugcvideo_ic_dislike = IconData(0xe811, fontFamily: _kFontFam);
|
static const IconData topbar_like = IconData(0xe811, fontFamily: _kFontFam);
|
||||||
static const IconData ugcvideo_ic_favorite = IconData(0xe812, fontFamily: _kFontFam);
|
static const IconData topbar_liked = IconData(0xe812, fontFamily: _kFontFam);
|
||||||
static const IconData ugcvideo_ic_like = IconData(0xe813, fontFamily: _kFontFam);
|
static const IconData topbar_share = IconData(0xe813, fontFamily: _kFontFam);
|
||||||
static const IconData ugcvideo_ic_offline = IconData(0xe814, fontFamily: _kFontFam);
|
static const IconData topic_tag = IconData(0xe814, fontFamily: _kFontFam);
|
||||||
static const IconData ugcvideo_ic_share = IconData(0xe815, fontFamily: _kFontFam);
|
static const IconData ugcvideo_ic_coin = IconData(0xe815, fontFamily: _kFontFam);
|
||||||
|
static const IconData ugcvideo_ic_dislike = IconData(0xe816, fontFamily: _kFontFam);
|
||||||
|
static const IconData ugcvideo_ic_favorite = IconData(0xe817, fontFamily: _kFontFam);
|
||||||
|
static const IconData ugcvideo_ic_like = IconData(0xe818, fontFamily: _kFontFam);
|
||||||
|
static const IconData ugcvideo_ic_offline = IconData(0xe819, fontFamily: _kFontFam);
|
||||||
|
static const IconData ugcvideo_ic_offline_outline = IconData(0xe81a, fontFamily: _kFontFam);
|
||||||
|
static const IconData ugcvideo_ic_share = IconData(0xe81b, fontFamily: _kFontFam);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import 'package:PiliPlus/utils/extension/theme_ext.dart';
|
|||||||
import 'package:PiliPlus/utils/num_utils.dart';
|
import 'package:PiliPlus/utils/num_utils.dart';
|
||||||
import 'package:PiliPlus/utils/platform_utils.dart';
|
import 'package:PiliPlus/utils/platform_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
|
|
||||||
class PgcReviewChildPage extends StatefulWidget {
|
class PgcReviewChildPage extends StatefulWidget {
|
||||||
@@ -262,13 +261,13 @@ class _PgcReviewChildPageState extends State<PgcReviewChildPage>
|
|||||||
(index) {
|
(index) {
|
||||||
if (index <= item.score - 1) {
|
if (index <= item.score - 1) {
|
||||||
return const Icon(
|
return const Icon(
|
||||||
BiliIcons.star_favorite_solid,
|
BiliIcons.ic_favorited,
|
||||||
size: 13,
|
size: 13,
|
||||||
color: Color(0xFFFFAD35),
|
color: Color(0xFFFFAD35),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return const Icon(
|
return const Icon(
|
||||||
BiliIcons.star_favorite_line,
|
BiliIcons.ic_favorite,
|
||||||
size: 14,
|
size: 14,
|
||||||
color: Colors.grey,
|
color: Colors.grey,
|
||||||
);
|
);
|
||||||
@@ -327,8 +326,8 @@ class _PgcReviewChildPageState extends State<PgcReviewChildPage>
|
|||||||
),
|
),
|
||||||
child: Icon(
|
child: Icon(
|
||||||
isDislike
|
isDislike
|
||||||
? FontAwesomeIcons.solidThumbsDown
|
? BiliIcons.ic_disliked
|
||||||
: FontAwesomeIcons.thumbsDown,
|
: BiliIcons.ic_dislike,
|
||||||
size: 16,
|
size: 16,
|
||||||
color: isDislike ? primary : color,
|
color: isDislike ? primary : color,
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -96,12 +96,12 @@ class _PgcReviewPostPanelState extends State<PgcReviewPostPanel> {
|
|||||||
return Obx(
|
return Obx(
|
||||||
() => index <= _score.value - 1
|
() => index <= _score.value - 1
|
||||||
? const Icon(
|
? const Icon(
|
||||||
BiliIcons.star_favorite_solid,
|
BiliIcons.ic_favorited,
|
||||||
size: 50,
|
size: 50,
|
||||||
color: Color(0xFFFFAD35),
|
color: Color(0xFFFFAD35),
|
||||||
)
|
)
|
||||||
: const Icon(
|
: const Icon(
|
||||||
BiliIcons.star_favorite_line,
|
BiliIcons.ic_favorite,
|
||||||
size: 50,
|
size: 50,
|
||||||
color: Colors.grey,
|
color: Colors.grey,
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -1771,62 +1771,77 @@ class HeaderControlState extends State<HeaderControl>
|
|||||||
width: btnWidth,
|
width: btnWidth,
|
||||||
height: btnHeight,
|
height: btnHeight,
|
||||||
child: Obx(
|
child: Obx(
|
||||||
() => ActionItem(
|
() {
|
||||||
expand: false,
|
final hasLike = introController.hasLike.value;
|
||||||
icon: const Icon(
|
return ActionItem(
|
||||||
BiliIcons.ugcvideo_ic_like,
|
expand: false,
|
||||||
color: Colors.white,
|
icon: hasLike
|
||||||
),
|
? const Icon(BiliIcons.topbar_liked)
|
||||||
selectStatus: introController.hasLike.value,
|
: const Icon(
|
||||||
animation: introController.tripleAnimation,
|
BiliIcons.topbar_like,
|
||||||
onStartTriple: () {
|
color: Colors.white,
|
||||||
plPlayerController.tripling = true;
|
),
|
||||||
introController.onStartTriple();
|
selectStatus: hasLike,
|
||||||
},
|
animation: introController.tripleAnimation,
|
||||||
onCancelTriple: ([bool isTapUp = false]) {
|
onStartTriple: () {
|
||||||
plPlayerController
|
plPlayerController.tripling = true;
|
||||||
..tripling = false
|
introController.onStartTriple();
|
||||||
..hideTaskControls();
|
},
|
||||||
introController.onCancelTriple(isTapUp);
|
onCancelTriple: ([bool isTapUp = false]) {
|
||||||
},
|
plPlayerController
|
||||||
),
|
..tripling = false
|
||||||
|
..hideTaskControls();
|
||||||
|
introController.onCancelTriple(isTapUp);
|
||||||
|
},
|
||||||
|
);
|
||||||
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: btnWidth,
|
width: btnWidth,
|
||||||
height: btnHeight,
|
height: btnHeight,
|
||||||
child: Obx(
|
child: Obx(
|
||||||
() => ActionItem(
|
() {
|
||||||
expand: false,
|
final hasCoin = introController.hasCoin;
|
||||||
animation: introController.tripleAnimation,
|
return ActionItem(
|
||||||
icon: const Icon(
|
expand: false,
|
||||||
BiliIcons.ugcvideo_ic_coin,
|
animation: introController.tripleAnimation,
|
||||||
color: Colors.white,
|
icon: hasCoin
|
||||||
size: 20,
|
? const Icon(BiliIcons.topbar_coined)
|
||||||
),
|
: const Icon(
|
||||||
onTap: introController.actionCoinVideo,
|
BiliIcons.topbar_coin,
|
||||||
selectStatus: introController.hasCoin,
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
|
onTap: introController.actionCoinVideo,
|
||||||
|
selectStatus: hasCoin,
|
||||||
|
);
|
||||||
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: btnWidth,
|
width: btnWidth,
|
||||||
height: btnHeight,
|
height: btnHeight,
|
||||||
child: Obx(
|
child: Obx(
|
||||||
() => ActionItem(
|
() {
|
||||||
expand: false,
|
final hasFav = introController.hasFav.value;
|
||||||
animation: introController.tripleAnimation,
|
return ActionItem(
|
||||||
icon: const Icon(
|
expand: false,
|
||||||
BiliIcons.ugcvideo_ic_favorite,
|
animation: introController.tripleAnimation,
|
||||||
color: Colors.white,
|
icon: hasFav
|
||||||
),
|
? const Icon(BiliIcons.topbar_favorited)
|
||||||
onTap: () => introController.showFavBottomSheet(context),
|
: const Icon(
|
||||||
onLongPress: () => introController.showFavBottomSheet(
|
BiliIcons.topbar_favorite,
|
||||||
context,
|
color: Colors.white,
|
||||||
isLongPress: true,
|
),
|
||||||
),
|
onTap: () =>
|
||||||
selectStatus: introController.hasFav.value,
|
introController.showFavBottomSheet(context),
|
||||||
),
|
onLongPress: () => introController.showFavBottomSheet(
|
||||||
|
context,
|
||||||
|
isLongPress: true,
|
||||||
|
),
|
||||||
|
selectStatus: hasFav,
|
||||||
|
);
|
||||||
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
@@ -1835,7 +1850,7 @@ class HeaderControlState extends State<HeaderControl>
|
|||||||
child: ActionItem(
|
child: ActionItem(
|
||||||
expand: false,
|
expand: false,
|
||||||
icon: const Icon(
|
icon: const Icon(
|
||||||
BiliIcons.ugcvideo_ic_offline,
|
BiliIcons.ugcvideo_ic_offline_outline,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
onTap: () => videoDetailCtr.onDownload(context),
|
onTap: () => videoDetailCtr.onDownload(context),
|
||||||
@@ -1847,7 +1862,7 @@ class HeaderControlState extends State<HeaderControl>
|
|||||||
child: ActionItem(
|
child: ActionItem(
|
||||||
expand: false,
|
expand: false,
|
||||||
icon: const Icon(
|
icon: const Icon(
|
||||||
BiliIcons.ugcvideo_ic_share,
|
BiliIcons.topbar_share,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
onTap: () => introController.actionShareVideo(context),
|
onTap: () => introController.actionShareVideo(context),
|
||||||
|
|||||||
Reference in New Issue
Block a user