The Text
widget is a Flutter mainstay, but sometimes, you crave more control over your text presentation. Enter wx_text
, a powerful package that injects superpowers into your Flutter text experience.
Features
- Seamless Integration: Build upon the familiar foundation of the standard Text widget. Inherits all its functionalities, including text content, styling, and text direction, making it a smooth transition for developers.
- Effortless Predefined Styles. Provides ready-made constructors for commonly used styles like titles, body text, and captions. It also allows for complete customization through callback functions.
- Minimum Lines. Defines the minimum number of lines the widget will always display, ensuring a consistent look and preventing empty space.
- Text Highlighting. Allows users to select and highlight specific portions of the text for emphasis or annotation. The highlighted text can be visually distinguished through color customization.
- Text Transformation. Leverage regular expressions to target specific patterns like URLs or email addresses. Transform them into clickable elements or custom builders, creating a more interactive and user-friendly experience.
- Spoiler Text. Implements a dynamic text expansion/collapse mechanism controlled by user interaction or specific triggers.
- Animated Text. Allowing you to add captivating animations like slide, zoom, shimmer, shake, fade, and even a typing effect. Grab user attention, enhance visual appeal, and tell your story in a more dynamic way.
- Outlines and Gradients. Go beyond basic styling and create visually striking text with customizable outlines and captivating gradients.
Usage
For a step-by-step breakdown of using wx_text, check out the article on Medium: Supercharge Your Flutter Text Widget. This guide showcases practical code examples and demonstrates how to leverage various features of wx_text
.
To delve deeper into the technical details of wx_text
's classes, methods, and properties, please refer to the official API Reference.
Sponsoring
If this package or any other package I created is helping you, please consider to sponsor me so that I can take time to read the issues, fix bugs, merge pull requests and add features to these packages.