Open zaksnet opened 1 year ago
Any ways to fix this?
add maxLines: null to CodeField
CodeTheme( data: CodeThemeData(styles: monokaiSublimeTheme), child: SingleChildScrollView( child: CodeField(controller: _controller, maxLines: null), ), )
Any one found any Fix?
i have the same issue
well checking in again, did anyone find a fix?
for some reason i integrated this to my small app and it didn't give any error weird.
well u can use listview --- it works in my case--code
column(
children:[
Flexible(
flex: 2,
child: CodeTheme(
data: CodeThemeData(
styles:
monokaiSublimeTheme), // <= Pre-defined in flutter_highlight.
child: ListView(
children: [
CodeField(
minLines: 30,
controller: controller,
gutterStyle: const GutterStyle(),
wrap: true,
),
],
),
),
), //flexible
]
)
I get the following error when running the project:
ScrollController not attached to any scroll views.
I am using the code_field projectEDIT: I did try this with Flutter Beta channel also before downgrading to the stable channel and i was receiving the same error EDIT: This only seems to happen when using a
Codefield
and not when using aTextField