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( IconButton(
icon: Icon( icon: Icon(
StreamIcons.picture, StreamIcons.picture,
size: 24,
color: _filePickerIndex == 0 color: _filePickerIndex == 0
? StreamChatTheme.of(context).accentColor ? StreamChatTheme.of(context).accentColor
: Colors.black.withOpacity(0.5), : Colors.black.withOpacity(0.5),
@@ -643,6 +644,7 @@ class MessageInputState extends State<MessageInput> {
IconButton( IconButton(
icon: Icon( icon: Icon(
StreamIcons.folder, StreamIcons.folder,
size: 24,
color: _filePickerIndex == 1 color: _filePickerIndex == 1
? StreamChatTheme.of(context).accentColor ? StreamChatTheme.of(context).accentColor
: Colors.black.withOpacity(0.5), : Colors.black.withOpacity(0.5),
@@ -654,6 +656,7 @@ class MessageInputState extends State<MessageInput> {
IconButton( IconButton(
icon: Icon( icon: Icon(
StreamIcons.camera, StreamIcons.camera,
size: 24,
color: _filePickerIndex == 2 color: _filePickerIndex == 2
? StreamChatTheme.of(context).accentColor ? StreamChatTheme.of(context).accentColor
: Colors.black.withOpacity(0.5), : Colors.black.withOpacity(0.5),
@@ -662,6 +665,18 @@ class MessageInputState extends State<MessageInput> {
pickFile(DefaultAttachmentTypes.image, true); 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( GestureDetector(
@@ -794,10 +809,6 @@ class MessageInputState extends State<MessageInput> {
); );
}); });
break; break;
case 1:
break;
case 2:
break;
} }
} }