fwfh_text_style 2.23.8 copy "fwfh_text_style: ^2.23.8" to clipboard
fwfh_text_style: ^2.23.8 copied to clipboard

A TextStyle replacement that allows resetting height behavior to normal.

FwfhTextStyle #

Flutter codecov Pub

A TextStyle replacement that allows resetting .height to null. This is a companion add-on for flutter_widget_from_html package.

See flutter/flutter#58765 and flutter/flutter#58766 for more information.

Getting Started #

Add this to your app's pubspec.yaml file:

dependencies:
  fwfh_text_style: ^2.23.8
copied to clipboard

Usage #

TextStyle style = FwfhTextStyle.of(context);

// ...

// reset .height to null (normal line height behavior)
final withoutHeight = style.copyWith(height: null);
copied to clipboard
4
likes
150
points
15.2k
downloads

Publisher

verified publisherdaohoangson.com

Weekly Downloads

2024.09.16 - 2025.03.31

A TextStyle replacement that allows resetting height behavior to normal.

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on fwfh_text_style