smart_text_widget 0.0.1 smart_text_widget: ^0.0.1 copied to clipboard
A smart text widget that handles null, list, map, and more.
Smart Text Widget #
smart_text_widget
is a Flutter package that provides a highly customizable RTText
widget. It is designed to handle various scenarios such as null values, empty strings, numbers, lists, maps, and more. The widget also includes features like scrolling, truncation, and dynamic text display.
Features #
- Handles Various Data Types: Supports null, empty strings, numbers, lists, and maps.
- Dynamic Truncation: Set maximum width and truncate text dynamically.
- Scroll Support: Automatically scrolls for long strings or lists.
- Custom Separators for Lists: Choose how to separate list items (
,
or|
). - Error Handling: Displays default or custom error text in case of issues.
Getting Started #
To use this package, add it to your project by including it in your pubspec.yaml
file:
dependencies:
smart_text_widget: ^1.0.0
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.