Flutter_html: Line height (TextStyle.height)

Created on 1 Mar 2020  路  10Comments  路  Source: Sub6Resources/flutter_html

I'm using 1.0.0-pre1

It would be nice to have Style.lineHeight property or similar, which would be used as TextStyle.height in TextStyle class.

https://api.flutter.dev/flutter/painting/TextStyle/height.html

Most helpful comment

I have created a PR for this: #306

you can find my branch here while waiting for the approval
https://github.com/vanlooverenkoen/flutter_html/tree/feature/%23233-line-height-support

All 10 comments

Yes, this is a planned feature in 1.0.0. Thank you for your suggestion!

We are looking forward to that new upload. We need line-height and text-align please.

Thanks a lot!

Hi, thanks for the update, 1.0.0 looks great. I can't seem to find lineHeight on the Style class, however. I tried using height, but that seems to be the height of the entire Html widget, and not each line of text. I may be missing something.

Is lineHeight available in 1.0.0?

+1 for lineHeight

I have created a PR for this: #306

you can find my branch here while waiting for the approval
https://github.com/vanlooverenkoen/flutter_html/tree/feature/%23233-line-height-support

IMHO this is a key feature to have.
The PR created by @vanlooverenkoen will just make it.

Do you think this will be available any time soon?

Thanks!

What's the status on this feature request?

I have implemented it. But the maintainer of this package is not really active. https://github.com/Sub6Resources/flutter_html/issues/233#issuecomment-635995784

+1 for @vanlooverenkoen PR
it's great addition.

thanks @vanlooverenkoen !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DrobyshevAlex picture DrobyshevAlex  路  3Comments

a-href picture a-href  路  4Comments

zs-dima picture zs-dima  路  4Comments

AbdoXLabs picture AbdoXLabs  路  5Comments

bhanuka96 picture bhanuka96  路  4Comments