mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
@@ -13,7 +13,6 @@ import 'package:PiliPlus/models/common/home_tab_type.dart';
|
||||
import 'package:PiliPlus/models_new/fav/fav_pgc/list.dart';
|
||||
import 'package:PiliPlus/models_new/pgc/pgc_index_result/list.dart';
|
||||
import 'package:PiliPlus/models_new/pgc/pgc_timeline/result.dart';
|
||||
import 'package:PiliPlus/pages/common/common_page.dart';
|
||||
import 'package:PiliPlus/pages/pgc/controller.dart';
|
||||
import 'package:PiliPlus/pages/pgc/widgets/pgc_card_v.dart';
|
||||
import 'package:PiliPlus/pages/pgc/widgets/pgc_card_v_timeline.dart';
|
||||
@@ -37,9 +36,7 @@ class PgcPage extends StatefulWidget {
|
||||
State<PgcPage> createState() => _PgcPageState();
|
||||
}
|
||||
|
||||
class _PgcPageState extends CommonPageState<PgcPage, PgcController>
|
||||
with AutomaticKeepAliveClientMixin {
|
||||
@override
|
||||
class _PgcPageState extends State<PgcPage> with AutomaticKeepAliveClientMixin {
|
||||
late final PgcController controller;
|
||||
|
||||
@override
|
||||
@@ -58,28 +55,26 @@ class _PgcPageState extends CommonPageState<PgcPage, PgcController>
|
||||
Widget build(BuildContext context) {
|
||||
super.build(context);
|
||||
final ThemeData theme = Theme.of(context);
|
||||
return onBuild(
|
||||
refreshIndicator(
|
||||
onRefresh: controller.onRefresh,
|
||||
child: CustomScrollView(
|
||||
controller: controller.scrollController,
|
||||
physics: const AlwaysScrollableScrollPhysics(),
|
||||
slivers: [
|
||||
_buildFollow(theme),
|
||||
if (controller.showPgcTimeline)
|
||||
SliverToBoxAdapter(
|
||||
child: SizedBox(
|
||||
height:
|
||||
Grid.smallCardWidth / 2 / 0.75 +
|
||||
MediaQuery.textScalerOf(context).scale(96),
|
||||
child: Obx(
|
||||
() => _buildTimeline(theme, controller.timelineState.value),
|
||||
),
|
||||
return refreshIndicator(
|
||||
onRefresh: controller.onRefresh,
|
||||
child: CustomScrollView(
|
||||
controller: controller.scrollController,
|
||||
physics: const AlwaysScrollableScrollPhysics(),
|
||||
slivers: [
|
||||
_buildFollow(theme),
|
||||
if (controller.showPgcTimeline)
|
||||
SliverToBoxAdapter(
|
||||
child: SizedBox(
|
||||
height:
|
||||
Grid.smallCardWidth / 2 / 0.75 +
|
||||
MediaQuery.textScalerOf(context).scale(96),
|
||||
child: Obx(
|
||||
() => _buildTimeline(theme, controller.timelineState.value),
|
||||
),
|
||||
),
|
||||
..._buildRcmd(theme),
|
||||
],
|
||||
),
|
||||
),
|
||||
..._buildRcmd(theme),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user