panel property

RxList<ChatButton> panel
latefinal

ChatButtons displayed in the more panel.

Implementation

late final RxList<ChatButton> panel = RxList([
  if (PlatformUtils.isMobile && !PlatformUtils.isWeb) ...[
    TakePhotoButton(pickImageFromCamera),
    if (PlatformUtils.isAndroid) TakeVideoButton(pickVideoFromCamera),
    GalleryButton(pickMedia),
    FileButton(pickFile),
  ] else
    AttachmentButton(pickFile),
  if (_settings?.value?.callButtonsPosition == CallButtonsPosition.more &&
      onCall != null) ...[
    AudioCallButton(() => onCall?.call(false)),
    VideoCallButton(() => onCall?.call(true)),
  ],
]);