diff --git a/lib/src/message_input.dart b/lib/src/message_input.dart index e393cd3c..872864bd 100644 --- a/lib/src/message_input.dart +++ b/lib/src/message_input.dart @@ -630,6 +630,7 @@ class MessageInputState extends State { 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 { 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 { 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 { 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 { ); }); break; - case 1: - break; - case 2: - break; } }