mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-29 12:38:34 +00:00
opt: common ctr
opt: state Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -104,13 +104,13 @@ abstract class CommonSearchPanelState<
|
||||
sliver: _builLoading,
|
||||
)
|
||||
: _builLoading,
|
||||
Success() => loadingState.response?.isNotEmpty == true
|
||||
? buildList(theme, loadingState.response!)
|
||||
Success(:var response) => response?.isNotEmpty == true
|
||||
? buildList(theme, response!)
|
||||
: HttpError(
|
||||
onReload: controller.onReload,
|
||||
),
|
||||
Error() => HttpError(
|
||||
errMsg: loadingState.errMsg,
|
||||
Error(:var errMsg) => HttpError(
|
||||
errMsg: errMsg,
|
||||
onReload: controller.onReload,
|
||||
),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user