mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-21 02:50:14 +08:00
show img menu
opt img placeholder opt player gesture opt pref tweaks Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -1592,8 +1592,7 @@ class VideoDetailController extends GetxController
|
||||
if (response.subtitle?.subtitles?.isNotEmpty == true) {
|
||||
subtitles.value = response.subtitle!.subtitles!;
|
||||
|
||||
final idx = switch (SubtitlePrefType.values[Pref
|
||||
.subtitlePreferenceV2]) {
|
||||
final idx = switch (Pref.subtitlePreferenceV2) {
|
||||
SubtitlePrefType.off => 0,
|
||||
SubtitlePrefType.on => 1,
|
||||
SubtitlePrefType.withoutAi =>
|
||||
|
||||
@@ -773,6 +773,9 @@ class _UgcIntroPanelState extends State<UgcIntroPanel> {
|
||||
int? ownerMid,
|
||||
Staff item,
|
||||
) {
|
||||
void onTap() => Get.toNamed(
|
||||
'/member?mid=${item.mid}&from_view_aid=${videoDetailCtr.aid}',
|
||||
);
|
||||
return GestureDetector(
|
||||
behavior: HitTestBehavior.opaque,
|
||||
onTap: () {
|
||||
@@ -781,11 +784,13 @@ class _UgcIntroPanelState extends State<UgcIntroPanel> {
|
||||
introController.horizontalMemberPage) {
|
||||
widget.onShowMemberPage(ownerMid);
|
||||
} else {
|
||||
Get.toNamed(
|
||||
'/member?mid=${item.mid}&from_view_aid=${videoDetailCtr.aid}',
|
||||
);
|
||||
onTap();
|
||||
}
|
||||
},
|
||||
onSecondaryTap:
|
||||
PlatformUtils.isDesktop && introController.horizontalMemberPage
|
||||
? onTap
|
||||
: null,
|
||||
child: Row(
|
||||
children: [
|
||||
Stack(
|
||||
@@ -893,6 +898,12 @@ class _UgcIntroPanelState extends State<UgcIntroPanel> {
|
||||
) => GestureDetector(
|
||||
onTap: onPushMember,
|
||||
behavior: HitTestBehavior.opaque,
|
||||
onSecondaryTap:
|
||||
PlatformUtils.isDesktop && introController.horizontalMemberPage
|
||||
? () => Get.toNamed(
|
||||
'/member?mid=${introController.userStat.value.card?.mid}&from_view_aid=${videoDetailCtr.aid}',
|
||||
)
|
||||
: null,
|
||||
child: Obx(
|
||||
() {
|
||||
final userStat = introController.userStat.value;
|
||||
|
||||
@@ -99,14 +99,8 @@ class ReplyItemGrpc extends StatelessWidget {
|
||||
return Material(
|
||||
type: MaterialType.transparency,
|
||||
child: InkWell(
|
||||
onTap: () {
|
||||
feedBack();
|
||||
replyReply?.call(replyItem, null);
|
||||
},
|
||||
onLongPress: () {
|
||||
feedBack();
|
||||
showMore();
|
||||
},
|
||||
onTap: () => replyReply?.call(replyItem, null),
|
||||
onLongPress: showMore,
|
||||
onSecondaryTap: isMobile ? null : showMore,
|
||||
child: _buildContent(context, theme),
|
||||
),
|
||||
@@ -468,10 +462,7 @@ class ReplyItemGrpc extends StatelessWidget {
|
||||
return InkWell(
|
||||
onTap: () =>
|
||||
replyReply?.call(replyItem, childReply.id.toInt()),
|
||||
onLongPress: () {
|
||||
feedBack();
|
||||
showMore();
|
||||
},
|
||||
onLongPress: showMore,
|
||||
onSecondaryTap: PlatformUtils.isMobile ? null : showMore,
|
||||
child: Padding(
|
||||
padding: padding,
|
||||
|
||||
Reference in New Issue
Block a user