Skip to content

Gutter and text is not vertically aligned #215

@sma

Description

@sma

I think, the gutter is off by one pixel, see:
image

Here's my configuration:

          CodeField(
            textStyle: const TextStyle(
              fontFamily: 'Cascadia Mono',
              // height: 1.5, // this seems to be the default
              fontSize: 16,
            ),
            gutterStyle: const GutterStyle(
              textStyle: TextStyle(
                color: Colors.white24,
                fontSize: 16,
                height: 1.5, // without this line, it doesn't match the text
              ),
            ),
            ...

I'm using version 0.2.15.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions