mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: update error widget
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -111,10 +111,10 @@ class _LivePageState extends CommonPageState<LivePage, LiveController>
|
||||
childCount: loadingState.response!.length,
|
||||
),
|
||||
)
|
||||
: scrollErrorWidget(callback: controller.onReload),
|
||||
: scrollErrorWidget(onReload: controller.onReload),
|
||||
Error() => HttpError(
|
||||
errMsg: loadingState.errMsg,
|
||||
callback: controller.onReload,
|
||||
onReload: controller.onReload,
|
||||
),
|
||||
_ => throw UnimplementedError(),
|
||||
};
|
||||
@@ -321,7 +321,7 @@ class _LivePageState extends CommonPageState<LivePage, LiveController>
|
||||
),
|
||||
Error() => HttpError(
|
||||
errMsg: loadingState.errMsg,
|
||||
callback: () {
|
||||
onReload: () {
|
||||
controller
|
||||
..followListState.value = LoadingState.loading()
|
||||
..fetchLiveFollowing();
|
||||
|
||||
Reference in New Issue
Block a user