Open lff5 opened 3 years ago
In dark mode, light blue background and white foreground style is somehow hard to read.
I have similar problem and i want to change the color of the box. That blue in my applications is terrible. Any idea?
@antonio-gravity Sure (not that after two years it could be topical but others might still need it, considering that it's still not fixed, even if it's a no-brainer):
Markdown(
styleSheet: MarkdownStyleSheet.fromTheme(Theme.of(context)).copyWith(
blockquoteDecoration: BoxDecoration(
color: Theme.of(context).colorScheme.secondaryContainer,
borderRadius: BorderRadius.circular(2.0),
),
),
Actually, that's exactly what should be done in the original code...
Hello
blockquote background does not respect dark theme. It has hardcoded color:
Colors.blue.shade100
see https://github.com/flutter/packages/blob/master/packages/flutter_markdown/lib/src/style_sheet.dart lines 118-121:I guess code to reproduce the issue and further comments are not needed because everything is obvious from the code. Even my flutter doctor doesn't matter because the code block above is from current master branch.