nslogx / nslogx/flutter_easyloading
增加设置Text组件的maxLines,overflow属性
Open
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 1.3k
- Forks
- 249
- PR merge metrics
- No merged PRs in 30d
Description
当显示toast时,如果文案过长会越界,希望通过设置maxLines属性,设置最多显示的行数。overflow可以默认设置成TextOverflow.ellipsis
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Inspect the toast implementation and the Text component used for its message. Reproduce the overflow with a long toast, then verify that the requested maximum line count and ellipsis behavior are applied and that long messages no longer extend beyond the available area.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- frontend, mobile-dev
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 50/100