feat: wip message input

This commit is contained in:
Deven Joshi
2020-10-16 17:32:59 +05:30
parent dc7c00399b
commit 96bb9efbba
+10 -4
View File
@@ -230,6 +230,7 @@ class MessageInputState extends State<MessageInput> {
Expanded _buildTextInput(BuildContext context) {
return Expanded(
child: Center(
child: LimitedBox(
maxHeight: widget.maxHeight,
child: TextField(
@@ -286,6 +287,7 @@ class MessageInputState extends State<MessageInput> {
textCapitalization: TextCapitalization.sentences,
),
),
),
);
}
@@ -602,8 +604,9 @@ class MessageInputState extends State<MessageInput> {
}
}
Material _buildAttachmentButton() {
return Material(
Widget _buildAttachmentButton() {
return Center(
child: Material(
clipBehavior: Clip.hardEdge,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(32),
@@ -620,6 +623,7 @@ class MessageInputState extends State<MessageInput> {
angle: 0.4,
),
),
),
);
}
@@ -845,7 +849,7 @@ class MessageInputState extends State<MessageInput> {
child: Material(
clipBehavior: Clip.hardEdge,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(24),
borderRadius: BorderRadius.circular(32),
),
color: Colors.grey,
child: IconButton(
@@ -856,6 +860,7 @@ class MessageInputState extends State<MessageInput> {
icon: Icon(
Icons.arrow_forward,
color: Colors.white,
size: 18.0,
),
),
),
@@ -874,7 +879,7 @@ class MessageInputState extends State<MessageInput> {
child: Material(
clipBehavior: Clip.hardEdge,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(24),
borderRadius: BorderRadius.circular(32),
),
color: StreamChatTheme.of(context).accentColor,
child: IconButton(
@@ -885,6 +890,7 @@ class MessageInputState extends State<MessageInput> {
icon: Icon(
Icons.arrow_upward,
color: Colors.white,
size: 18.0,
),
),
),