flutter-quill icon indicating copy to clipboard operation
flutter-quill copied to clipboard

[Mobile] InlineStyle background is not being applied

Open JCKodel opened this issue 3 years ago • 5 comments

image

This image shows a Code block followed by an inline code. Both has the same styles, but the background color of inline code is not applied (even if I set it to Color.red).

JCKodel avatar Nov 28 '22 18:11 JCKodel

I'm experiencing this too. I'll be setting the text color to black for the time being. Using flutter_quill: 6.1.5 and Flutter stable 3.3.10

adil192 avatar Dec 24 '22 20:12 adil192

I'm still experiencing this issue on 8.3.0. Did you mean to close this issue?

adil192 avatar Nov 10 '23 10:11 adil192

Update: InlineCodeStyle.backgroundColor does nothing, but InlineCodeStyle.style.backgroundColor works. We might need to remove InlineCodeStyle.backgroundColor or fix it.

inlineCode: InlineCodeStyle(
  backgroundColor: Colors.red, // does nothing
  style: GoogleFonts.firaMono(textStyle: textTheme.bodyLarge!).copyWith(
    color: Colors.white,
    backgroundColor: Colors.green, // this works
  ),
),

Update 2: InlineCodeStyle.style.backgroundColor doesn't actually change the backgroundColor as expected. See this screenshot where the original grey color is still visible underneath the green from the above code sample. We can also observe in the second screenshot that InlineCodeStyle.style.backgroundColor is even worse with transparency (green with 20% opacity), since the original grey is still behind it. v9_quill sbn dark v9_quill sbn dark

adil192 avatar Nov 10 '23 10:11 adil192

I'm still experiencing this issue on 8.3.0. Did you mean to close this issue?

Hi, I didn't check it since there were more than 170 issues

So I closed the old issues since it's not applicable anymore

There are no interactions with it

EchoEllet avatar Nov 10 '23 12:11 EchoEllet

I'm still experiencing this issue on 8.3.0. Did you mean to close this issue?

Reopened.

EchoEllet avatar Nov 10 '23 15:11 EchoEllet