auto_size_text_kit 0.1.1
auto_size_text_kit: ^0.1.1 copied to clipboard
Drop-in replacement for auto_size_text: text that shrinks to fit its space, with gradient fills and outlines sized together. Works in IntrinsicHeight and tables.
0.1.1 #
- Added a Buy Me a Coffee link (
fundingin pubspec and a Support section in the README).
0.1.0 #
- 🎉 Initial release.
AutoSizeText,AutoSizeText.richandAutoSizeGroupwith the same arguments as theauto_size_textpackage, so switching only takes changing the import.- Rebuilt as a single render object that measures and paints the text with the same layout, so the picked size always matches what is painted, including with the bold text setting.
- New:
gradientfills the text with any gradient, stretched across its lines. - New:
strokeWidth,strokeColorandstrokeGradientdraw an outline around the text, taken into account while fitting. With a transparent fill, it draws hollow text with the same outline thickness. - New:
AutoSizeGroup.fontSizereports the shared font size, and the group notifies listeners when it changes. - New:
textScaler,textWidthBasisandtextHeightBehavior.textScaleFactorstill works but is deprecated. - Works inside
IntrinsicHeight,IntrinsicWidth,TableandDataTable, and with baseline alignment. - Texts in a group are painted at the shared size from the first frame.
minFontSizeandmaxFontSizeno longer need to be multiples ofstepGranularity, and text smaller thanminFontSizeis no longer enlarged.- The text is only fitted again when its text, style or space changes, not on every rebuild or color change. Text painters are disposed.
