Closed muhsintr closed 3 months ago
in my case the solution was added height: 1.5 to the gutterStyle
...
child: ListView(
children: [
CodeField(
controller: controller,
minLines: 20,
gutterStyle: const GutterStyle(
textStyle: TextStyle(color: Colors.grey, height: 1.5),
showLineNumbers: true,
),
onChanged: (text) {
print(text);
},
),
],
),
...
in my case the solution was added height: 1.5 to the gutterStyle
... child: ListView( children: [ CodeField( controller: controller, minLines: 20, gutterStyle: const GutterStyle( textStyle: TextStyle(color: Colors.grey, height: 1.5), showLineNumbers: true, ), onChanged: (text) { print(text); }, ), ], ), ...
It worked. Thanks a lot :)
Line numbers are not aligned with code lines.
As attached, line numbers in the left side (80-83) are above expected position.