首屏展示修改

This commit is contained in:
谢宇宁
2026-09-17 14:19:30 +07:00
parent 069658f4a3
commit 94a509ad93
4 changed files with 9 additions and 117 deletions
@@ -64,7 +64,11 @@ class _CommonSearchBarViewState extends State<CommonSearchBarView> {
borderRadius: BorderRadius.circular(99),
),
child: Config.searchHints.isEmpty
? Text('请输入关键字', style: _hintStyle)
//父级给的是 36 的紧约束,Text 会撑满高度后从顶部起排,要 Align 压回垂直居中
? Align(
alignment: Alignment.centerLeft,
child: Text('请输入关键字', style: _hintStyle),
)
: MarqueeWidget(
count: Config.searchHints.length,
onIndexChanged: (index) =>