mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-22 03:31:09 +08:00
mod: update error widget
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -84,10 +84,10 @@ class _FavArticlePageState extends State<FavArticlePage>
|
||||
childCount: loadingState.response!.length,
|
||||
),
|
||||
)
|
||||
: HttpError(callback: _favArticleController.onReload),
|
||||
: HttpError(onReload: _favArticleController.onReload),
|
||||
Error() => HttpError(
|
||||
errMsg: loadingState.errMsg,
|
||||
callback: _favArticleController.onReload,
|
||||
onReload: _favArticleController.onReload,
|
||||
),
|
||||
LoadingState() => throw UnimplementedError(),
|
||||
};
|
||||
|
||||
@@ -166,10 +166,10 @@ class _FavNoteChildPageState extends State<FavNoteChildPage>
|
||||
),
|
||||
),
|
||||
)
|
||||
: HttpError(callback: _favNoteController.onReload),
|
||||
: HttpError(onReload: _favNoteController.onReload),
|
||||
Error() => HttpError(
|
||||
errMsg: loadingState.errMsg,
|
||||
callback: _favNoteController.onReload,
|
||||
onReload: _favNoteController.onReload,
|
||||
),
|
||||
LoadingState() => throw UnimplementedError(),
|
||||
};
|
||||
|
||||
@@ -212,10 +212,10 @@ class _FavPgcChildPageState extends State<FavPgcChildPage>
|
||||
),
|
||||
),
|
||||
)
|
||||
: HttpError(callback: _favPgcController.onReload),
|
||||
: HttpError(onReload: _favPgcController.onReload),
|
||||
Error() => HttpError(
|
||||
errMsg: loadingState.errMsg,
|
||||
callback: _favPgcController.onReload,
|
||||
onReload: _favPgcController.onReload,
|
||||
),
|
||||
LoadingState() => throw UnimplementedError(),
|
||||
};
|
||||
|
||||
@@ -98,11 +98,11 @@ class _FavVideoPageState extends State<FavVideoPage>
|
||||
),
|
||||
)
|
||||
: HttpError(
|
||||
callback: _favController.onReload,
|
||||
onReload: _favController.onReload,
|
||||
),
|
||||
Error() => HttpError(
|
||||
errMsg: loadingState.errMsg,
|
||||
callback: _favController.onReload,
|
||||
onReload: _favController.onReload,
|
||||
),
|
||||
LoadingState() => throw UnimplementedError(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user