mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 12:48:41 +00:00
fix #226
This commit is contained in:
parent
877ee9a057
commit
d04866879a
1 changed files with 5 additions and 1 deletions
|
|
@ -399,6 +399,9 @@ class _ChatMessagesViewState extends State<ChatMessagesView> {
|
||||||
child: TextField(
|
child: TextField(
|
||||||
controller: newMessageController,
|
controller: newMessageController,
|
||||||
focusNode: textFieldFocus,
|
focusNode: textFieldFocus,
|
||||||
|
keyboardType: TextInputType.multiline,
|
||||||
|
maxLines: 4,
|
||||||
|
minLines: 1,
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
currentInputText = value;
|
currentInputText = value;
|
||||||
setState(() {});
|
setState(() {});
|
||||||
|
|
@ -409,9 +412,9 @@ class _ChatMessagesViewState extends State<ChatMessagesView> {
|
||||||
decoration: inputTextMessageDeco(context),
|
decoration: inputTextMessageDeco(context),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(width: 8),
|
|
||||||
(currentInputText != "")
|
(currentInputText != "")
|
||||||
? IconButton(
|
? IconButton(
|
||||||
|
padding: EdgeInsets.all(15),
|
||||||
icon:
|
icon:
|
||||||
FaIcon(FontAwesomeIcons.solidPaperPlane),
|
FaIcon(FontAwesomeIcons.solidPaperPlane),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
|
@ -420,6 +423,7 @@ class _ChatMessagesViewState extends State<ChatMessagesView> {
|
||||||
)
|
)
|
||||||
: IconButton(
|
: IconButton(
|
||||||
icon: FaIcon(FontAwesomeIcons.camera),
|
icon: FaIcon(FontAwesomeIcons.camera),
|
||||||
|
padding: EdgeInsets.all(15),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
context,
|
context,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue