Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-18 16:56:43 +08:00
parent f642bfcf48
commit ab80b2a5af
24 changed files with 876 additions and 871 deletions

View File

@@ -40,7 +40,13 @@ class _SubDetailPageState extends State<SubDetailPage> {
slivers: [
_buildAppBar(theme),
_buildCount(theme),
Obx(() => _buildBody(_subDetailController.loadingState.value)),
SliverPadding(
padding: EdgeInsets.only(
bottom: MediaQuery.paddingOf(context).bottom + 80,
),
sliver: Obx(
() => _buildBody(_subDetailController.loadingState.value)),
),
],
),
),
@@ -58,23 +64,18 @@ class _SubDetailPageState extends State<SubDetailPage> {
),
),
Success(:var response) => response?.isNotEmpty == true
? SliverPadding(
padding: EdgeInsets.only(
bottom: MediaQuery.paddingOf(context).bottom + 80,
),
sliver: SliverGrid(
gridDelegate: Grid.videoCardHDelegate(context),
delegate: SliverChildBuilderDelegate(
childCount: response!.length,
(context, index) {
if (index == response.length - 1) {
_subDetailController.onLoadMore();
}
return SubVideoCardH(
videoItem: response[index],
);
},
),
? SliverGrid(
gridDelegate: Grid.videoCardHDelegate(context),
delegate: SliverChildBuilderDelegate(
childCount: response!.length,
(context, index) {
if (index == response.length - 1) {
_subDetailController.onLoadMore();
}
return SubVideoCardH(
videoItem: response[index],
);
},
),
)
: HttpError(