Is there any way to set the overflow dots to middle of the text in Flutter?
A normal use case is displaying filenames where the file extension is also visible to the user.
i.e.,
Currently, by using Text widget with overflow parameter as TextOverflow.ellipsis, we are getting the following
Text(
"IMG_100232321321312312312312312321321312321343024.PNG",
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: Theme.of(context).textTheme.caption,
);
The result will be something like:
IMG_10023232132131...
Is there any way can we get a result like this:
IMG_10023...3024.PNG