Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions super_text_layout/lib/src/text_selection_layer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,15 @@ class TextLayoutSelectionHighlight extends StatelessWidget {

@override
Widget build(BuildContext context) {
return CustomPaint(
painter: TextSelectionPainter(
textLayout: textLayout,
selectionColor: style.color,
borderRadius: style.borderRadius,
textSelection: selection,
return SizedBox(
width: double.infinity,
child: CustomPaint(
painter: TextSelectionPainter(
textLayout: textLayout,
selectionColor: style.color,
borderRadius: style.borderRadius,
textSelection: selection,
),
),
);
}
Expand Down
Loading