fix: 搜索框默认搜索词溢出

This commit is contained in:
guozhigq
2024-03-02 13:02:43 +08:00
parent fca7c36203
commit ae33cbf7ca

View File

@ -415,13 +415,16 @@ class SearchBar extends StatelessWidget {
), ),
const SizedBox(width: 10), const SizedBox(width: 10),
Obx( Obx(
() => Text( () => Expanded(
ctr!.defaultSearch.value, child: Text(
maxLines: 1, ctr!.defaultSearch.value,
overflow: TextOverflow.ellipsis, maxLines: 1,
style: TextStyle(color: colorScheme.outline), overflow: TextOverflow.ellipsis,
style: TextStyle(color: colorScheme.outline),
),
), ),
), ),
const SizedBox(width: 15),
], ],
), ),
), ),