highlight_mentions 0.0.2
highlight_mentions: ^0.0.2 copied to clipboard
A Flutter package to highlight mentions in text fields and display widgets.
Highlight Mentions Flutter Package #
The Highlight Mentions package enables developers to add support for highlighting mentions in their Flutter applications. It provides widgets and utilities for rendering and interacting with mentions in text input fields and text displays.
Features #
- Highlight mentions in text fields as the user types.
- Customize styles for regular text, mentions, and special mentions.
- Supports dynamic mentionable usernames.
- Modular and reusable components.
Platform Support #
| Android | iOS | MacOS | Web | Linux | Windows |
|---|---|---|---|---|---|
| ✅ | ✅ | ❌ | ❌ | ❌ | ❌ |
Customization #
Highlight Styles You can customize the styles for regular text, mentions, and special mentions by providing TextStyle objects to the following parameters:
• normalStyle: Style for regular text. • highlightedStyle: Style for highlighted mentions. • specialStyle: Style for special mentions like @All.
TextField Parameters #
The HighlightedTextField supports all standard TextField properties, such as: • focusNode • keyboardType • textInputAction • cursorColor • maxLines • onChanged • And many more.
Contributions #
Contributions, issues, and feature requests are welcome! Feel free to check out the repository and submit a pull request.
Issues and Feedback #
If you encounter any issues or have suggestions for improvements, feel free to open an issue on GitHub.