clamp archive page

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-03-25 13:53:01 +08:00
parent b4b3764e5f
commit ba56b45038
4 changed files with 48 additions and 43 deletions

View File

@@ -188,7 +188,9 @@ abstract class BaseVideoWebState<
void onSubmit([_]) {
try {
controller.jumpToPage(int.parse(pageStr));
controller.jumpToPage(
int.parse(pageStr).clamp(1, controller.totalPage!),
);
} catch (e) {
SmartDialog.showToast(e.toString());
}