ellipsized_text
2.0.0, released 2 years ago by an unverified publisher
A single line text widget with customizable ellipsis placement (start, middle, or end).
WASM-ready
What it does
Provides a widget to display text in a single line with adjustable ellipsis positions such as start, middle, or end. Useful for shortening crypto wallet addresses or other abbreviated information.
AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a single-line text widget with a middle or start ellipsis.
- You are displaying shortened crypto wallet addresses.
Skip it when
- You need multi-line text ellipsizing.
- You need advanced auto-sizing text capabilities.
Strengths
- Simple API with preset types for start, middle, and end ellipsis positions.
- Supports standard text styling properties like textScaleFactor/textScaler, strutStyle, and locale.
Weaknesses
- Limited to one line of text.
- Not documented for complex multi-line truncations.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
EllipsizedText(
"Ellipsized Text Ellipsized Text Ellipsized Text Ellipsized Text",
type: EllipsisType.middle,
style: TextStyle(fontSize: 24),
)Alternatives
Packages that do the same job and could replace ellipsized_text.
- auto_size_text
If you need text to automatically resize to fit available space instead of strictly positioning an ellipsis.
50Compare