Closed MrCyjaneK closed 1 year ago
Hello, @MrCyjaneK
Please, try to pass a textStyle
parameter to the CodeField
and specify the fontFamily
there.
CodeField(
textStyle: const TextStyle(
fontFamily: 'RobotoMono',
fontSize: 12,
),
)
The text inside of a CodeField
mainly has the style, passed to its constructor. Styles from CodeThemeData
only override the styles for specific text, like comments, keywords, etc.
that.. that solved all my issues. Thanks.
I've created a simple function to change all styles to use RobotoMono font in my app:
and I call it in the following way:
But not every part of code is being updated to monospace. I've also tried manually editing these fields in CodeThemeData:
commentStyle, functionStyle, keywordStyle, paramsStyle, quoteStyle, titleStyle, variableStyle
but also without any success on getting the full code to switch to RobotoMono.