Skip to main content

auto_size_text_kit 0.1.1 copy "auto_size_text_kit: ^0.1.1" to clipboard
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 (funding in pubspec and a Support section in the README).

0.1.0 #

  • 🎉 Initial release.
  • AutoSizeText, AutoSizeText.rich and AutoSizeGroup with the same arguments as the auto_size_text package, 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: gradient fills the text with any gradient, stretched across its lines.
  • New: strokeWidth, strokeColor and strokeGradient draw 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.fontSize reports the shared font size, and the group notifies listeners when it changes.
  • New: textScaler, textWidthBasis and textHeightBehavior. textScaleFactor still works but is deprecated.
  • Works inside IntrinsicHeight, IntrinsicWidth, Table and DataTable, and with baseline alignment.
  • Texts in a group are painted at the shared size from the first frame.
  • minFontSize and maxFontSize no longer need to be multiples of stepGranularity, and text smaller than minFontSize is 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.
3
likes
160
points
455
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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.

Repository (GitHub)
View/report issues

Topics

#text #font #responsive #gradient #widget

Funding

Consider supporting this project:

buymeacoffee.com

License

MIT (license)

Dependencies

flutter

More

Packages that depend on auto_size_text_kit