This commit is contained in:
otsmr 2025-07-11 13:53:21 +02:00
parent 877ee9a057
commit d04866879a

View file

@ -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,