fix: text overflow

This commit is contained in:
guozhigq
2024-10-29 23:39:56 +08:00
parent 26f3492ad2
commit 7a1f3c95a9
2 changed files with 18 additions and 10 deletions

View File

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