I wanted to know if there was a way of adding a prefix (like "- ") to every line in a multiline Text Input in Flutter.
For example:
Hello
World!
Would become:
-Hello
-World!
This is my code:
TextField(
maxLines: null,
controller: _elementsController,
textCapitalization: TextCapitalization.sentences,
style: TextStyle(
fontSize: 18.0,
),
decoration: InputDecoration(
contentPadding: EdgeInsets.all(0.0),
labelText: 'Elements',
),
),