Skip to content

Commit

Permalink
fix: fix text overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hyj1204 committed Apr 21, 2023
1 parent 9cee2ad commit 00f0f8c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions lib/src/render/color_menu/color_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,15 @@ class _ColorPickerState extends State<ColorPicker> {
label: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
option.name,
style: TextStyle(fontSize: 12, color: widget.pickerItemTextColor),
Expanded(
child: Text(
option.name,
style:
TextStyle(fontSize: 12, color: widget.pickerItemTextColor),
softWrap: false,
maxLines: 1,
overflow: TextOverflow.fade,
),
),
// checkbox
if (isChecked) const FlowySvg(name: 'checkmark'),
Expand Down

0 comments on commit 00f0f8c

Please sign in to comment.