Skip to content

Set cursorHeight #517

@taosimple

Description

@taosimple

I changed height: 2.5 and the cursor, selected section height all increase to text line height, it seems weird. I try to change cursor height by modify getFullHeightForCaret in fleather source code, but encountered a issue similar to flutter/flutter#145829, hope add cursorHeight option and sync with TextFiled.

FleatherTheme(
            data: defaultTheme.copyWith(
              paragraph: TextBlockTheme(
                style: defaultTheme.paragraph.style.copyWith(fontSize: 20, height: 2.5),
                spacing: VerticalSpacing.zero(),
              ),
            ),
            child: FleatherEditor(
              controller: _editorController,
              focusNode: _focusNode,
              expands: false,
              embedBuilder: _embedBuilder,
            ),
          );

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions