Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-12-27 20:54:41 +08:00
parent 25acf3a9bb
commit b51c646415
227 changed files with 768 additions and 764 deletions

View File

@@ -17,7 +17,7 @@ abstract class CommonSearchPageState<S extends StatefulWidget, R, T>
@override
Widget build(BuildContext context) {
if (controller case MultiSelectBase multiCtr) {
if (controller case final MultiSelectBase multiCtr) {
return Obx(() {
final enableMultiSelect = multiCtr.enableMultiSelect.value;
return PopScope(
@@ -95,11 +95,11 @@ abstract class CommonSearchPageState<S extends StatefulWidget, R, T>
Widget _buildBody(LoadingState<List<T>?> loadingState) {
return switch (loadingState) {
Loading() => const HttpError(),
Success(:var response) =>
Success(:final response) =>
response != null && response.isNotEmpty
? buildList(response)
: HttpError(onReload: controller.onReload),
Error(:var errMsg) => HttpError(
Error(:final errMsg) => HttpError(
errMsg: errMsg,
onReload: controller.onReload,
),