“Флэттер многослойного текста” Ответ

Как развевать несколько линейных текстов

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,
  ),
),
Grumpy Gorilla

Flutter Multiline Text Field

new TextField(
  keyboardType: TextInputType.multiline,
  maxLines: whatever,
)
Excited Echidna

Многослойный текст трепетает

Text(
     "TOP ADDED",
     textAlign: TextAlign.justify,
     overflow: TextOverflow.ellipsis,
     style: TextStyle(fontSize: 18.0),
     maxLines: 2,)
Grumpy Gorilla

Flutter Multiline Text Field

TextField(
  keyboardType: TextInputType.multiline,
  maxLines: null,
  minLines: 3, // this will give you default height, you should adjust it.
  //Optional way to do full screen
  //(MediaQuery.of(context).size.height / 25).toInt()
  ...
)
MrNtlu

трепетать многослойно

TextField(
  keyboardType: TextInputType.multiline,
  maxLines: null,
)
Bloody Butterfly

Флэттер многослойного текста

// All that is required for multi-line text, is that your Text() widgets' 
// width is limited by a parent widget. For example:

SizedBox(
    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",
    ),
),
Cruel Civet

Ответы похожие на “Флэттер многослойного текста”

Вопросы похожие на “Флэттер многослойного текста”

Больше похожих ответов на “Флэттер многослойного текста” по Dart

Смотреть популярные ответы по языку

Смотреть другие языки программирования