show img menu

opt img placeholder

opt player gesture

opt pref

tweaks

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-01-09 12:18:32 +08:00
parent 28b69a06fa
commit d10c737a38
31 changed files with 340 additions and 178 deletions

View File

@@ -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 =>

View File

@@ -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;

View File

@@ -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,