mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: fav detail page
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -242,7 +242,10 @@ class _FavDetailPageState extends State<FavDetailPage> {
|
|||||||
return loadingState is Success
|
return loadingState is Success
|
||||||
? loadingState.response.isEmpty
|
? loadingState.response.isEmpty
|
||||||
? const SliverToBoxAdapter(child: SizedBox())
|
? const SliverToBoxAdapter(child: SizedBox())
|
||||||
: SliverGrid(
|
: SliverPadding(
|
||||||
|
padding: EdgeInsets.only(
|
||||||
|
bottom: MediaQuery.of(context).padding.bottom),
|
||||||
|
sliver: SliverGrid(
|
||||||
gridDelegate: SliverGridDelegateWithExtentAndRatio(
|
gridDelegate: SliverGridDelegateWithExtentAndRatio(
|
||||||
mainAxisSpacing: StyleString.cardSpace,
|
mainAxisSpacing: StyleString.cardSpace,
|
||||||
crossAxisSpacing: StyleString.safeSpace,
|
crossAxisSpacing: StyleString.safeSpace,
|
||||||
@@ -254,10 +257,8 @@ class _FavDetailPageState extends State<FavDetailPage> {
|
|||||||
(context, index) {
|
(context, index) {
|
||||||
if (index == loadingState.response.length) {
|
if (index == loadingState.response.length) {
|
||||||
return Container(
|
return Container(
|
||||||
height: MediaQuery.of(context).padding.bottom + 60,
|
height: 60,
|
||||||
padding: EdgeInsets.only(
|
alignment: Alignment.center,
|
||||||
bottom: MediaQuery.of(context).padding.bottom),
|
|
||||||
child: Center(
|
|
||||||
child: Obx(
|
child: Obx(
|
||||||
() => Text(
|
() => Text(
|
||||||
_favDetailController.loadingText.value,
|
_favDetailController.loadingText.value,
|
||||||
@@ -266,7 +267,6 @@ class _FavDetailPageState extends State<FavDetailPage> {
|
|||||||
fontSize: 13),
|
fontSize: 13),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return FavVideoCardH(
|
return FavVideoCardH(
|
||||||
@@ -277,6 +277,7 @@ class _FavDetailPageState extends State<FavDetailPage> {
|
|||||||
},
|
},
|
||||||
childCount: loadingState.response.length + 1,
|
childCount: loadingState.response.length + 1,
|
||||||
),
|
),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
: loadingState is Error
|
: loadingState is Error
|
||||||
? HttpError(
|
? HttpError(
|
||||||
|
|||||||
@@ -68,8 +68,8 @@ class FavVideoCardH extends StatelessWidget {
|
|||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.fromLTRB(
|
padding:
|
||||||
StyleString.safeSpace, 5, StyleString.safeSpace, 5),
|
const EdgeInsets.symmetric(horizontal: StyleString.safeSpace),
|
||||||
child: LayoutBuilder(
|
child: LayoutBuilder(
|
||||||
builder: (context, boxConstraints) {
|
builder: (context, boxConstraints) {
|
||||||
double width =
|
double width =
|
||||||
|
|||||||
Reference in New Issue
Block a user