mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 16:48:16 +08:00
@@ -176,8 +176,8 @@ class SearchHttp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static Future<LoadingState<PgcInfoModel>> pgcInfo({
|
static Future<LoadingState<PgcInfoModel>> pgcInfo({
|
||||||
int? seasonId,
|
dynamic seasonId,
|
||||||
int? epId,
|
dynamic epId,
|
||||||
}) async {
|
}) async {
|
||||||
var res = await Request().get(
|
var res = await Request().get(
|
||||||
Api.pgcInfo,
|
Api.pgcInfo,
|
||||||
@@ -193,7 +193,7 @@ class SearchHttp {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static Future<LoadingState> episodeInfo({int? epId}) async {
|
static Future<LoadingState> episodeInfo({dynamic epId}) async {
|
||||||
var res = await Request().get(
|
var res = await Request().get(
|
||||||
Api.episodeInfo,
|
Api.episodeInfo,
|
||||||
queryParameters: {
|
queryParameters: {
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ abstract class CommonDynController<R> extends ReplyController<R>
|
|||||||
late final AnimationController fabAnimationCtr;
|
late final AnimationController fabAnimationCtr;
|
||||||
late final Animation<Offset> fabAnim;
|
late final Animation<Offset> fabAnim;
|
||||||
|
|
||||||
final RxBool showTitle = false.obs;
|
late final RxBool showTitle = false.obs;
|
||||||
|
|
||||||
late final horizontalPreview = Pref.horizontalPreview;
|
late final horizontalPreview = Pref.horizontalPreview;
|
||||||
late final List<double> ratio = Pref.dynamicDetailRatio;
|
late final List<double> ratio = Pref.dynamicDetailRatio;
|
||||||
|
|||||||
@@ -60,9 +60,12 @@ abstract class CommonDynPageState<T extends CommonDynPage> extends State<T>
|
|||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
Obx(
|
Obx(
|
||||||
() => Text(
|
() {
|
||||||
'${controller.count.value == -1 ? 0 : NumUtil.numFormat(controller.count.value)}条回复',
|
final count = controller.count.value;
|
||||||
),
|
return Text(
|
||||||
|
'${count == -1 ? 0 : NumUtil.numFormat(count)}条回复',
|
||||||
|
);
|
||||||
|
},
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
height: 35,
|
height: 35,
|
||||||
|
|||||||
@@ -60,11 +60,12 @@ class _DynamicDetailPageState extends CommonDynPageState<DynamicDetailPage> {
|
|||||||
padding: const EdgeInsets.only(right: 12),
|
padding: const EdgeInsets.only(right: 12),
|
||||||
child: Obx(
|
child: Obx(
|
||||||
() {
|
() {
|
||||||
|
final showTitle = controller.showTitle.value;
|
||||||
return AnimatedOpacity(
|
return AnimatedOpacity(
|
||||||
opacity: controller.showTitle.value ? 1 : 0,
|
opacity: showTitle ? 1 : 0,
|
||||||
duration: const Duration(milliseconds: 300),
|
duration: const Duration(milliseconds: 300),
|
||||||
child: IgnorePointer(
|
child: IgnorePointer(
|
||||||
ignoring: !controller.showTitle.value,
|
ignoring: !showTitle,
|
||||||
child: AuthorPanel(
|
child: AuthorPanel(
|
||||||
item: controller.dynItem,
|
item: controller.dynItem,
|
||||||
isDetail: true,
|
isDetail: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user