Answers for "flutter show 2 lines of text and then cut"

1

how to flutter multiple line text

Container(
  width: 150,
  child: Text(
    "This text is very very very very very very very very very very very very very very very very very very very very very very very very very long",
    overflow: TextOverflow.ellipsis,
    maxLines: 5,
  ),
),
Posted by: Guest on August-01-2020
3

flutter multiline text field

new TextField(
  keyboardType: TextInputType.multiline,
  maxLines: whatever,
)
Posted by: Guest on May-12-2020

Browse Popular Code Answers by Language