Text Overflow.fade for multiline text
- Dominant language
- Dart
- Stars
- 179k
- Forks
- 31.1k
- PR merge metrics
- PR metrics pending
Description
### Use case
I am trying to achieve the effect of fading out the block text. I am writing this code:
``` dart
Text(
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ',
maxLines: 2,
style: TextStyle(
overflow: TextOverflow.fade,
),
),
```
And I get it:
But that's not what I need. I want the text to fade out only on the right side of the last line. That is, the last line should look like this:
### Proposal
I want the text to fade out only on the right side of the last line. That is, the last line should look like this:
Maybe something can be corrected inside Flutter to achieve this behavior?
Contributor guide
Assessment
This issue has not been assessed yet.