“Flutter Multiline Text” Código de respuesta

Cómo revolotear el texto de múltiples líneas

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

Campo de texto de Flutter Multiline

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

Flutter de texto multilínea

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

Campo de texto de Flutter Multiline

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

Flutter Multiline

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

Flutter Multiline Text

// 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

Respuestas similares a “Flutter Multiline Text”

Preguntas similares a “Flutter Multiline Text”

Más respuestas relacionadas con “Flutter Multiline Text” en Dart

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código