add record icon

This commit is contained in:
Salvatore Giordano
2020-11-16 16:49:00 +01:00
parent c04d72d46f
commit 4ff3a225b2
+15 -4
View File
@@ -630,6 +630,7 @@ class MessageInputState extends State<MessageInput> {
IconButton(
icon: Icon(
StreamIcons.picture,
size: 24,
color: _filePickerIndex == 0
? StreamChatTheme.of(context).accentColor
: Colors.black.withOpacity(0.5),
@@ -643,6 +644,7 @@ class MessageInputState extends State<MessageInput> {
IconButton(
icon: Icon(
StreamIcons.folder,
size: 24,
color: _filePickerIndex == 1
? StreamChatTheme.of(context).accentColor
: Colors.black.withOpacity(0.5),
@@ -654,6 +656,7 @@ class MessageInputState extends State<MessageInput> {
IconButton(
icon: Icon(
StreamIcons.camera,
size: 24,
color: _filePickerIndex == 2
? StreamChatTheme.of(context).accentColor
: Colors.black.withOpacity(0.5),
@@ -662,6 +665,18 @@ class MessageInputState extends State<MessageInput> {
pickFile(DefaultAttachmentTypes.image, true);
},
),
IconButton(
icon: Icon(
StreamIcons.record,
size: 24,
color: _filePickerIndex == 2
? StreamChatTheme.of(context).accentColor
: Colors.black.withOpacity(0.5),
),
onPressed: () {
pickFile(DefaultAttachmentTypes.video, true);
},
),
],
),
GestureDetector(
@@ -794,10 +809,6 @@ class MessageInputState extends State<MessageInput> {
);
});
break;
case 1:
break;
case 2:
break;
}
}