fwfh_text_style 2.22.8+2 copy "fwfh_text_style: ^2.22.8+2" to clipboard
fwfh_text_style: ^2.22.8+2 copied to clipboard

unlisted

A TextStyle replacement that allows resetting height behavior to normal.

example/main.dart

import 'package:flutter/rendering.dart';
import 'package:fwfh_text_style/fwfh_text_style.dart';

void main() {
  final style = TextStyle(height: 1.0, inherit: false);
  print('style.height=${style.height}'); //       style.height=1.0
  final copy = style.copyWith(height: null);
  print('copy.height=${copy.height}'); //         copy.height=1.0

  final fwfh = FwfhTextStyle.from(style);
  print('fwfh.height=${fwfh.height}'); //         fwfh.height=1.0
  final fwfhCopy = style.copyWith(height: null);
  print('fwfhCopy.height=${fwfhCopy.height}'); // fwfhCopy.height=null
}
4
likes
0
points
29.8k
downloads

Publisher

verified publisherdaohoangson.com

Weekly Downloads

A TextStyle replacement that allows resetting height behavior to normal.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on fwfh_text_style