handle relation url

Closes #1566

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-10-15 18:25:15 +08:00
parent 32ce2b87db
commit c9de79532a
31 changed files with 634 additions and 393 deletions

View File

@@ -1,6 +1,7 @@
import 'dart:math';
import 'package:PiliPlus/common/constants.dart';
import 'package:PiliPlus/common/widgets/button/more_btn.dart';
import 'package:PiliPlus/common/widgets/loading_widget/http_error.dart';
import 'package:PiliPlus/common/widgets/loading_widget/loading_widget.dart';
import 'package:PiliPlus/common/widgets/refresh_indicator.dart';
@@ -231,8 +232,8 @@ class _PgcPageState extends CommonPageState<PgcPage, PgcController>
'推荐',
style: theme.textTheme.titleMedium,
),
GestureDetector(
behavior: HitTestBehavior.opaque,
moreTextButton(
padding: const EdgeInsets.symmetric(vertical: 2),
onTap: () {
if (widget.tabType == HomeTabType.bangumi) {
Get.to(const PgcIndexPage());
@@ -291,26 +292,7 @@ class _PgcPageState extends CommonPageState<PgcPage, PgcController>
);
}
},
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 2),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Text(
'查看更多',
strutStyle: const StrutStyle(leading: 0, height: 1),
style: TextStyle(
height: 1,
color: theme.colorScheme.secondary,
),
),
Icon(
Icons.chevron_right,
color: theme.colorScheme.secondary,
),
],
),
),
color: theme.colorScheme.secondary,
),
],
),
@@ -394,34 +376,16 @@ class _PgcPageState extends CommonPageState<PgcPage, PgcController>
() => controller.accountService.isLogin.value
? Padding(
padding: const EdgeInsets.symmetric(horizontal: 10),
child: GestureDetector(
behavior: HitTestBehavior.opaque,
child: moreTextButton(
text: '查看全部',
onTap: () => Get.toNamed(
'/fav',
arguments: widget.tabType == HomeTabType.bangumi
? FavTabType.bangumi.index
: FavTabType.cinema.index,
),
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 8),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Text(
'查看全部',
strutStyle: const StrutStyle(leading: 0, height: 1),
style: TextStyle(
height: 1,
color: theme.colorScheme.secondary,
),
),
Icon(
Icons.chevron_right,
color: theme.colorScheme.secondary,
),
],
),
),
padding: const EdgeInsets.symmetric(vertical: 8),
color: theme.colorScheme.secondary,
),
)
: const SizedBox.shrink(),