This commit is contained in:
randogoth 2026-06-19 14:04:15 +03:00
parent 9704433b4c
commit 2906453316
4 changed files with 14 additions and 14 deletions

View file

@ -15,7 +15,7 @@ class WrappedCodeField extends StatefulWidget {
super.key,
required this.controller,
this.expands = false,
this.wrap = true, // Enable wrapping by default
this.wrap = true,
this.textStyle,
this.cursorColor,
this.padding = EdgeInsets.zero,
@ -56,7 +56,7 @@ class _WrappedCodeFieldState extends State<WrappedCodeField> {
controller: widget.controller,
expands: widget.expands,
minLines: widget.expands ? null : 1,
maxLines: widget.expands ? null : null, // Allows text to grow dynamically
maxLines: widget.expands ? null : null,
scrollPhysics: widget.wrap ? const NeverScrollableScrollPhysics() : null,
style: widget.textStyle ?? const TextStyle(fontSize: 16),
cursorColor: widget.cursorColor ?? Colors.white,