New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blocks - Code blocks, Inline Code, RobotoMono font #17
Comments
You are supposed to feed your required style for each different tags when creating the editor, there you can specify which font family to use, the source code of quill in general is style agnostic, meaning all styles of all the different types of fragment are supposed to be SET BY the USER. customStyles: DefaultStyles(
...
code: DefaultTextBlockStyle(
const TextStyle(
fontFamily: 'RobotoCondensed', // fill in your favorite mono font
color: Colors.black87,
fontSize: 15,
height: 1.4,
),
const Tuple2(0, 10),
const Tuple2(0, 5),
const BoxDecoration(
color: Color(0xFFFCFCFC),
borderRadius: BorderRadius.all(Radius.circular(5)),
),
),
) |
Yes indeed, you can override styles, but that does not mean you can't provide a decent default value. Right? Code is never displayed in fonts that are not mono space for practical reasons. A sensible default does not harm. Quill Also decides a default font size. Obviously, it has to do so. Then if the font size has a default, why not a default for the code snippets? Any decent .md implementation will do the same for code snippets. Why not Quill? |
Also included in this commit:
|
Current source code uses a regular font as it was done in Flutter Quill. Which is not the way code editors handle this situation.
Join on discord to get advice and help or follow us on YouTube Visual Coding to learn more about the architecture of Visual Editor and other Flutter apps.
The text was updated successfully, but these errors were encountered: