middle_ellipsis_text 1.0.0 copy "middle_ellipsis_text: ^1.0.0" to clipboard
middle_ellipsis_text: ^1.0.0 copied to clipboard

A lightweight Flutter widget that truncates long text with ellipsis (...) in the middle — perfect for filenames, URLs, and long identifiers.

Changelog #

1.0.0 Initial Release 🎉 #

✨ Features #

  • Added MiddleEllipsisText widget to truncate long text in the middle with ...
  • Supports customizable keepStartFraction (control how much of the start/suffix is kept)
  • Smart width-based measurement using TextPainter
  • Built-in caching for performance
  • Fully null-safe and Flutter 3.32.8 compatible
  • Includes example app and unit tests

🧪 Tests #

  • Covers cases for short text, long text, caching, and edge widths
  • Ensures keepStartFraction behavior works as expected

🧱 Project Setup #

  • Added example/ standalone demo (web, iOS, Android ready)
  • Added standardized .gitignore and analysis_options.yaml
  • Configured CI workflow template for flutter test

📄 License #

  • Licensed under MIT © 2025 dab246
2
likes
160
points
717
downloads

Publisher

unverified uploader

Weekly Downloads

A lightweight Flutter widget that truncates long text with ellipsis (...) in the middle — perfect for filenames, URLs, and long identifiers.

Repository (GitHub)
View/report issues

Topics

#text #widget #ellipsis #flutter-ui

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on middle_ellipsis_text