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.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add middle_ellipsis_text

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  middle_ellipsis_text: ^1.0.0

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:middle_ellipsis_text/middle_ellipsis_text.dart';
2
likes
160
points
788
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