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.

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
130
pub points
96%
popularity

Publisher

verified publisherdaohoangson.com

A TextStyle replacement that allows resetting height behavior to normal.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on fwfh_text_style