Fix textfield

This commit is contained in:
Christian Pauly 2020-01-03 13:51:18 +01:00
commit 9b8314c4a4
3 changed files with 5 additions and 2 deletions

View file

@ -214,6 +214,9 @@ class _ChatState extends State<Chat> {
SizedBox(width: 8),
Expanded(
child: TextField(
maxLines: kIsWeb ? 1 : 8,
keyboardType:
kIsWeb ? TextInputType.text : TextInputType.multiline,
onSubmitted: (t) => send(),
controller: sendController,
decoration: InputDecoration(