babel_text 2.2.1
babel_text: ^2.2.1 copied to clipboard
A easy and highly customizable "Text" and "SelectableText" component. Change dynamically styles, add intuitively onTap functions in texts, easily display tooltip messages and more!
2.2.1 #
- Added
BabelTextSettings.defaultTooltipWaitDuration(...)to configure a package-wide default hover delay before tooltips appear. - Allowed
BabelTooltipMessage.tooltipTheme.waitDurationto override the package-wide default for a single tooltip. - Updated the README to document tooltip hover delay configuration and precedence.
2.2.0 #
- Added per-tooltip
TooltipThemeDataoverrides throughBabelTooltipMessage.tooltipTheme. - Added
BabelTooltipMessage.contentTextStyleto control the rich text style rendered inside a tooltip. - Added global tooltip text style configuration with
BabelTextSettings.defaultTooltipTextStyleSource. - Added
BabelTooltipTextStyleSourceso tooltips can use Flutter's tooltip styling or the legacy trigger text styling. - Added tests covering tooltip styling behavior for both
BabelTextandBabelSelectableText. - Warning: tooltip text styling now defaults to Flutter's tooltip theme/default behavior. To keep the previous behavior, switch to
BabelTooltipTextStyleSource.triggerTextStyle.
2.1.2 #
- Fixed
onTapMappingparsing for symbols that contain regex-special characters. - Fixed combined
styleMappingandonTapMappingusage when both share the same marker. - Added interaction tests covering complex rich-text tap scenarios for
BabelTextandBabelSelectableText.
2.1.1 #
- Added package logo/screenshot for pub.dev
2.1.0 #
- NEW: Added
BabelSelectableTextwidget - a selectable text equivalent ofBabelTextwith all the same customization features - NEW: Added
BabelSelectableInlinewidget - a widget that creates selectable inline text with babel formatting - Support for text selection, copying, and all SelectableText-specific parameters (cursorColor, selectionControls, onSelectionChanged, etc.)
- Full compatibility with existing babel text features (styleMapping, onTapMapping, innerWidgetMapping, onHoverTooltipMapping)
2.0.2 #
"BabelWidget" fields are not required
2.0.1 #
Export "BabelWidget"
2.0.0 #
- BREAKING CHANGE: Changed
innerWidgetMappinganddefaultWidgetMappingto useBabelWidget Function(BuildContext context, TextStyle currentStyle)instead ofWidget Function(BuildContext context, TextStyle currentStyle). This allows for more control over widget alignment and baseline through theBabelWidgetclass.
1.0.0 #
- Initial release
