Fix chapters display

This commit is contained in:
2025-02-15 21:27:43 +08:00
parent d004fcd944
commit afd3bfb7f5

View File

@@ -138,7 +138,7 @@ class _NormalComicChaptersState extends State<_NormalComicChapters> {
itemHeight: 48, itemHeight: 48,
), ),
).sliverPadding(const EdgeInsets.symmetric(horizontal: 8)), ).sliverPadding(const EdgeInsets.symmetric(horizontal: 8)),
if (chapters.length > 20 && !canShowAll) if (!canShowAll)
SliverToBoxAdapter( SliverToBoxAdapter(
child: Align( child: Align(
alignment: Alignment.center, alignment: Alignment.center,
@@ -322,7 +322,7 @@ class _GroupedComicChaptersState extends State<_GroupedComicChapters>
itemHeight: 48, itemHeight: 48,
), ),
).sliverPadding(const EdgeInsets.symmetric(horizontal: 8)), ).sliverPadding(const EdgeInsets.symmetric(horizontal: 8)),
if (chapters.length > 20 && !canShowAll) if (!canShowAll)
SliverToBoxAdapter( SliverToBoxAdapter(
child: Align( child: Align(
alignment: Alignment.center, alignment: Alignment.center,