Closed jarrodcolburn closed 7 months ago
@jarrodcolburn
It seems that the style/theme has been moved out of the controller and now it's only a UI thing. I've found an example of a different project that uses the same package and works well for me:
@override
Widget build(BuildContext context) {
return Expanded(
child: CodeTheme(
data: const CodeThemeData(styles: monokaiSublimeTheme),
child: CodeField(
controller: _codeController!,
textStyle: const TextStyle(
fontFamily: 'SourceCode',
),
),
),
);
}
Hope it helps!
Cheers, Antonio Jesus
all the examples have a
theme
property inCodeController
but I'm not seeing this in the class definition
Has it been moved?