refactor(ui): remove redundant web pickers from MessageInput

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2021-08-23 17:42:29 +05:30
committed by xsahil03x
parent 958ef8e9df
commit 55853c2aca
@@ -1875,24 +1875,6 @@ class MessageInputState extends State<MessageInput> {
Navigator.pop(context);
},
),
if (!kIsWeb)
ListTile(
leading: const Icon(Icons.camera_alt),
title: Text(context.translations.photoFromCameraLabel),
onTap: () {
pickFile(DefaultAttachmentTypes.image, camera: true);
Navigator.pop(context);
},
),
if (!kIsWeb)
ListTile(
leading: const Icon(Icons.videocam),
title: Text(context.translations.videoFromCameraLabel),
onTap: () {
pickFile(DefaultAttachmentTypes.video, camera: true);
Navigator.pop(context);
},
),
ListTile(
leading: const Icon(Icons.insert_drive_file),
title: Text(context.translations.uploadAFileLabel),