show search rcmd reason

Closes #921

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-01 18:32:55 +08:00
parent 53ef4219eb
commit 05bb27ee2b
3 changed files with 14 additions and 1 deletions

View File

@@ -77,6 +77,7 @@ class HomeController extends GetxController
var res = await Request().get(Api.searchDefault);
if (res.data['code'] == 0) {
defaultSearch.value = res.data['data']?['name'] ?? '';
// defaultSearch.value = res.data['data']?['show_name'] ?? '';
}
} catch (_) {}
}

View File

@@ -17,6 +17,10 @@ class HotKeyword extends StatelessWidget {
@override
Widget build(BuildContext context) {
late final style = TextStyle(
fontSize: 14,
color: Theme.of(context).colorScheme.outline,
);
return Wrap(
runSpacing: 0.4,
spacing: 5.0,
@@ -63,7 +67,9 @@ class HotKeyword extends StatelessWidget {
width: 48,
height: 15,
),
),
)
else if (i.recommendReason?.isNotEmpty == true)
Text(i.recommendReason!, style: style),
],
),
),