nslogx / nslogx/flutter_easyloading

增加设置Text组件的maxLines,overflow属性

Open
#216 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.