Skip to content

Commit c97251e

Browse files
committed
feat: allow vertical scrolling for multiline SuperTextFields
1 parent 9bf2d84 commit c97251e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

super_editor/lib/src/super_textfield/infrastructure/text_scrollview.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ class _TextScrollViewState extends State<TextScrollView>
423423
child: SingleChildScrollView(
424424
key: _textFieldViewportKey,
425425
controller: _scrollController,
426-
physics: const NeverScrollableScrollPhysics(),
426+
physics: isMultiline ? null : const NeverScrollableScrollPhysics(),
427427
scrollDirection: isMultiline ? Axis.vertical : Axis.horizontal,
428428
child: Padding(
429429
padding: widget.padding ?? EdgeInsets.zero,

0 commit comments

Comments
 (0)