opt dyn jump

tweak

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-22 10:03:42 +08:00
parent 824ee53025
commit d4a1568b28
14 changed files with 52 additions and 56 deletions

View File

@@ -60,8 +60,7 @@ class ActionPanel extends StatelessWidget {
),
Expanded(
child: TextButton.icon(
onPressed: () =>
PageUtils.pushDynDetail(item, 1, action: 'comment'),
onPressed: () => PageUtils.pushDynDetail(item, isPush: true),
icon: Icon(
FontAwesomeIcons.comment,
size: 16,

View File

@@ -59,7 +59,7 @@ class DynamicPanel extends StatelessWidget {
'DYNAMIC_TYPE_COURSES_SEASON',
}.contains(item.type)
? null
: () => PageUtils.pushDynDetail(item, 1),
: () => PageUtils.pushDynDetail(item),
onLongPress: () => _imageSaveDialog(context, authorWidget.morePanel),
child: Column(
mainAxisSize: MainAxisSize.min,

View File

@@ -25,7 +25,7 @@ Widget liveRcmdPanel(
Padding(
padding: const EdgeInsets.symmetric(horizontal: StyleString.safeSpace),
child: GestureDetector(
onTap: () => PageUtils.pushDynDetail(item, floor),
onTap: () => PageUtils.pushDynDetail(item),
child: Stack(
clipBehavior: Clip.none,
children: [

View File

@@ -85,7 +85,7 @@ Widget module(
}
maxWidth -= 30;
return InkWell(
onTap: () => PageUtils.pushDynDetail(orig, floor + 1),
onTap: () => PageUtils.pushDynDetail(orig),
onLongPress: () {
String? title, cover, bvid;
late var origMajor = orig.modules.moduleDynamic?.major;