Created
October 3, 2020 12:42
-
-
Save luizmarcus/63ed250bbe14ac556222cace8f0aaea4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar( | |
title: Text("Chat App"), | |
), | |
body: DashChat( | |
inverted: false, | |
onSend: onSend, | |
sendOnEnter: true, | |
textInputAction: TextInputAction.send, | |
user: user, | |
inputDecoration: | |
InputDecoration.collapsed(hintText: "Digite a mensagem aqui..."), | |
dateFormat: DateFormat('dd-MMM-yyyy'), | |
timeFormat: DateFormat('HH:mm'), | |
messages: messages, | |
showUserAvatar: false, | |
showAvatarForEveryMessage: false, | |
scrollToBottom: true, | |
inputMaxLines: 5, | |
messageContainerPadding: EdgeInsets.only(left: 5.0, right: 5.0), | |
alwaysShowSend: true, | |
inputTextStyle: TextStyle(fontSize: 16.0), | |
inputContainerStyle: BoxDecoration( | |
border: Border.all(width: 0.0), | |
color: Colors.white, | |
), | |
)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment