icon_to_text_extension_codespark 0.0.2
icon_to_text_extension_codespark: ^0.0.2 copied to clipboard
Flutter extension to render any IconData (Material or Cupertino) as Text or TextSpan for inline icons in rich text and custom layouts.
Changelog #
All notable changes to this project will be documented in this file.
0.0.2 - 2025-06-01 #
Added #
- Support for overriding
iconColorspecifically for the icon character in bothtoTextandtoTextSpan. - Support for setting a
semanticsLabelfor screen readers viaiconSemanticsLabelintoTextSpanandsemanticsLabelintoText. - Support for
textAlign,textDirection,maxLines, andtextOverflowintoText. - Full parameter forwarding to improve flexibility and integration into different layouts and accessibility contexts.
0.0.1 - 2025-05-30 #
Added #
- Initial release with
IconDatatoText/TextSpanextension methods. - Support for both Material and Cupertino icons.
- Preserves original icon
fontFamilyandfontPackage. iconToString()extension method to convertIconDatato a raw string character.toTextSpan(...)method with:- Optional
TextStylefor base styling. - Optional
prefixandpostfixsupport.
- Optional
toText(...)method that wrapstoTextSpaninto aText.rich(...)widget.- Example app showcasing usage of
toText,toTextSpan, andiconToString()method. - README file with:
- Package banner.
- Pub.dev and GitHub badges.
- Full usage instructions.
- API documentation.
- Screenshot preview of example app.