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