magic_text 1.0.1 copy "magic_text: ^1.0.1" to clipboard
magic_text: ^1.0.1 copied to clipboard

Auto-responsive text widget that supports a multitude of parameters to control text rendering behaviour.

1.0.1 #

  • Fixed crash when richTextMode: true — the widget now renders via RichText instead of calling the string word-wrap logic on an InlineSpan.
  • Fixed missing didUpdateWidget: textStyle changes from the parent widget are now reflected correctly without needing a hot-restart.
  • Changed magicSizeMode default from true to false to avoid a runtime assert when minFontSize/maxFontSize are not provided.
  • Fixed breakWordCharacter null-check assert producing a cryptic error.
  • Explicit as String / as InlineSpan casts replace dynamic dispatch in the rendering path.
  • Removed debug print() from the mobile example.
  • Fixed README usage example (const MagicText is not valid — constructor has a body).
  • Updated README version reference to ^1.0.0.

1.0.0 #

  • Dart 3 / Flutter 3.12+ support: updated SDK and Flutter constraints.
  • Replaced deprecated textScaleFactor with textScaler: TextScaler.noScaling.
  • Added richTextMode parameter for InlineSpan support.
  • Fixed @immutable compliance: all instance fields are now final.
  • Added full public API documentation to meet pub.dev scoring requirements.
  • Enabled public_member_api_docs lint rule.

0.0.1 #

Auto-responsive text widget that supports a multitude of parameters to control text rendering behaviour.

The main purpose of the Magic Text widget is to adapt to the available space in an elegant way, handling a character that allows to handle line breaks that cut words, remove unnecessary spaces and adapt the text size in such a way that there are as few word breaks as possible between a range of maximum and minimum sizes passed by parameter. The text rendering task can be done synchronously and asynchronously. It is also possible to parameterize most of the attributes used in a Text widget.

0.0.2 #

Auto-responsive text widget that supports a multitude of parameters to control text rendering behaviour.

The main purpose of the Magic Text widget is to adapt to the available space in an elegant way, handling a character that allows to handle line breaks that cut words, remove unnecessary spaces and adapt the text size in such a way that there are as few word breaks as possible between a range of maximum and minimum sizes passed by parameter. The text rendering task can be done synchronously and asynchronously. It is also possible to parameterize most of the attributes used in a Text widget.

0.0.3 #

Performance improvements

Rendering performance improvements to speed up the widget.

13
likes
150
points
229
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Auto-responsive text widget that supports a multitude of parameters to control text rendering behaviour.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on magic_text