角标和占位图替换

This commit is contained in:
谢宇宁
2026-09-21 23:21:09 +07:00
parent 4d7e30da95
commit f6a91760f3
10 changed files with 5 additions and 86 deletions
@@ -211,7 +211,6 @@ class _SearchVideoResultPageState extends State<SearchVideoResultPage> {
videoModel: model,
textLines: 1,
coverRightText: model.dramaInfo?.episodeNumberStatus,
showLevelIcon: false,
isFromSearch: true,
onTap: () => _openDrama(model),
),
@@ -299,7 +298,6 @@ class _SearchVideoResultPageState extends State<SearchVideoResultPage> {
videoModel: videoModel,
textLines: 1,
coverRightText: videoModel.dramaInfo?.episodeNumberStatus,
showLevelIcon: false,
isFromSearch: true,
onTap: () => _openDrama(videoModel),
),
@@ -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) =>