opt: LoadingState (#1776)

This commit is contained in:
My-Responsitories
2025-12-13 12:43:32 +08:00
committed by GitHub
parent 3741fe54ff
commit 17883eb77e
82 changed files with 832 additions and 887 deletions

View File

@@ -214,10 +214,9 @@ class SSearchController extends GetxController
@override
Future<void> onValueChanged(String value) async {
var res = await SearchHttp.searchSuggest(term: value);
if (res['status']) {
SearchSuggestModel data = res['data'];
if (data.tag?.isNotEmpty == true) {
searchSuggestList.value = data.tag!;
if (res case Success(:final response)) {
if (response.tag?.isNotEmpty == true) {
searchSuggestList.value = response.tag!;
}
}
}