add more js api & improve ui

This commit is contained in:
nyne
2024-10-15 20:45:12 +08:00
parent c0a0dc59e1
commit fc86b8bbc6
22 changed files with 609 additions and 140 deletions

View File

@@ -133,7 +133,7 @@ class _CategoryPage extends StatelessWidget {
children: [
if (data.enableRankingPage)
buildTag("Ranking".tl, (p0, p1) {
context.to(() => RankingPage(sourceKey: findComicSourceKey()));
context.to(() => RankingPage(categoryKey: data.key));
}),
for (var buttonData in data.buttons)
buildTag(buttonData.label.tl, (p0, p1) => buttonData.onTap())