improve ui

This commit is contained in:
nyne
2024-10-26 19:39:12 +08:00
parent e64b69d818
commit 96bf3688d0
12 changed files with 112 additions and 84 deletions

View File

@@ -38,23 +38,23 @@ class _RankingPageState extends State<RankingPage> {
@override
Widget build(BuildContext context) {
var topPadding = context.padding.top + 56;
return Scaffold(
extendBodyBehindAppBar: true,
appBar: Appbar(
title: Text("Ranking".tl),
),
body: Column(
children: [
Expanded(
child: ComicList(
loadPage: data.rankingData!.load == null
? null
: (i) => data.rankingData!.load!(optionValue, i),
loadNext: data.rankingData!.loadWithNext == null
? null
: (i) => data.rankingData!.loadWithNext!(optionValue, i),
),
),
],
body: ComicList(
key: Key(optionValue),
errorLeading: SizedBox(height: topPadding),
leadingSliver:
buildOptions().sliverPadding(EdgeInsets.only(top: topPadding)),
loadPage: data.rankingData!.load == null
? null
: (i) => data.rankingData!.load!(optionValue, i),
loadNext: data.rankingData!.loadWithNext == null
? null
: (i) => data.rankingData!.loadWithNext!(optionValue, i),
),
);
}