flame-engine / flame-engine/flame

Any possible way to set maxLines of Text in Flame?

Open
#2,279 7 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Dart
Stars
10.8k
Forks
1k
Avg merge
1d 20h
Merged PRs (30d)
21

Description

I've tried using TextComponent and TextBoxComponent but I still cannot find any solution to set the line number of a text.
I tried the following textRenderer, still not worked:

```dart
textRenderer = TextPaint(
style: const TextStyle(overflow: TextOverflow.ellipsis, height: 1,
fontSize: 18, color: Color.fromARGB(255, 215, 215, 215)));
```

Any solution, please kindly help me. Thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.