magic_text 1.0.1
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 viaRichTextinstead of calling the string word-wrap logic on anInlineSpan. - Fixed missing
didUpdateWidget:textStylechanges from the parent widget are now reflected correctly without needing a hot-restart. - Changed
magicSizeModedefault fromtruetofalseto avoid a runtime assert whenminFontSize/maxFontSizeare not provided. - Fixed
breakWordCharacternull-check assert producing a cryptic error. - Explicit
as String/as InlineSpancasts replacedynamicdispatch in the rendering path. - Removed debug
print()from the mobile example. - Fixed README usage example (
const MagicTextis 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
textScaleFactorwithtextScaler: TextScaler.noScaling. - Added
richTextModeparameter forInlineSpansupport. - Fixed
@immutablecompliance: all instance fields are nowfinal. - Added full public API documentation to meet pub.dev scoring requirements.
- Enabled
public_member_api_docslint 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.