Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to reduce Line Spacing #41

Open
ayyyushhhhh opened this issue Dec 30, 2021 · 2 comments
Open

How to reduce Line Spacing #41

ayyyushhhhh opened this issue Dec 30, 2021 · 2 comments

Comments

@ayyyushhhhh
Copy link

Hi, I'm using Zefyrka Package in my flutter web project. But I found some issue in Flutter web.

1 - Zefyrka editor takes 4-5 seconds before someone can use the editor.
2- Line spacing is too much. (Almost like you have enter a new line twice). Is there any way to reduce it?

@dthuering
Copy link
Contributor

Same here. Default line spacing on MacOS target. Looks the same on iOS. Could not find how to set the preferred line height yet.
Screenshot 2022-05-29 at 09 23 10

@dthuering
Copy link
Contributor

Found the ZefyrTheme class that is responsible for this kind of setting. Here is an example that changes line height.

SizedBox(
  height: 200,
  child: ZefyrTheme(
    data: ZefyrThemeData.fallback(context).copyWith(
      paragraph: TextBlockTheme(
        style: DefaultTextStyle.of(context).style,
        spacing: VerticalSpacing.zero())),
    child: ZefyrEditor(
      controller: _controller,
    ),
  ),
),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants