code_field
code_field copied to clipboard
Line numbers wrap when >999 lines
Experienced in live demo when editing a file with more than 999 lines.

LineNumberStyle lineNumberStyle = LineNumberStyle(width: 75, textAlign: TextAlign.center);
return Scaffold( appBar: AppBar(title: Text(config.key)), body: SingleChildScrollView( child: CodeField( controller: _codeController!, textStyle: TextStyle(fontFamily: 'SourceCode'), lineNumberStyle: lineNumberStyle, ), ),
Just increase the LineNumberStyle.width