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),
Obx(
() => Text(
ctr!.defaultSearch.value,
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: TextStyle(color: colorScheme.outline),
() => Expanded(
child: Text(
ctr!.defaultSearch.value,
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: TextStyle(color: colorScheme.outline),
),
),
),
const SizedBox(width: 15),
],
),
),