[core] Fix Blockquote Style (#148)

This commit fixes the style of blockquotes when we render the item
description as Markdown. Until now blockquotes had a weird blue
background, so that the text wasn't readable.

Now we are using the secondary color as background and we add a border on
the left site with the primary color.

We would also like to use italic as font family, but there is currently
a bug, so that the defined blockquote style is not applied. See
https://github.com/flutter/flutter/issues/81720
This commit is contained in:
Rico Berger
2024-02-23 18:39:10 +01:00
committed by GitHub
parent ed76d85fd8
commit c64b8026ae
2 changed files with 18 additions and 0 deletions

View File

@@ -54,6 +54,15 @@ class ItemDescription extends StatelessWidget {
codeblockDecoration: const BoxDecoration(
color: Constants.secondary,
),
blockquoteDecoration: const BoxDecoration(
color: Constants.secondary,
border: Border(
left: BorderSide(
color: Constants.primary,
width: 1,
),
),
),
),
onTapLink: (text, href, title) {
if (href != null) {

View File

@@ -55,6 +55,15 @@ class ItemDescription extends StatelessWidget {
codeblockDecoration: const BoxDecoration(
color: Constants.secondary,
),
blockquoteDecoration: const BoxDecoration(
color: Constants.secondary,
border: Border(
left: BorderSide(
color: Constants.primary,
width: 1,
),
),
),
),
onTapLink: (text, href, title) {
if (href != null) {