Skip to content

Commit

Permalink
fix: 搜索框默认搜索词溢出
Browse files Browse the repository at this point in the history
  • Loading branch information
guozhigq committed Mar 2, 2024
1 parent fca7c36 commit ae33cbf
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions lib/pages/home/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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),
],
),
),
Expand Down

0 comments on commit ae33cbf

Please sign in to comment.