TF-2532 Remove attachment/inlineImage icon in keyboard toolbar on tablet

This commit is contained in:
dab246
2024-06-24 12:09:20 +07:00
committed by Dat H. Pham
parent 31eeadc50d
commit 298ae28668
2 changed files with 2 additions and 11 deletions
@@ -243,15 +243,6 @@ class ComposerView extends GetWidget<ComposerController> {
keyboardRichTextController: controller.richTextMobileTabletController!.richTextController,
onCloseViewAction: () => controller.handleClickCloseComposer(context),
onClearFocusAction: () => controller.clearFocus(context),
onAttachFileAction: () => controller.isNetworkConnectionAvailable
? controller.openPickAttachmentMenu(
context,
_pickAttachmentsActionTiles(context)
)
: null,
onInsertImageAction: (constraints) => controller.isNetworkConnectionAvailable
? controller.insertImage(context, constraints.maxWidth)
: null,
childBuilder: (context, constraints) => Container(
color: ComposerStyle.mobileBackgroundColor,
child: Column(
@@ -51,8 +51,8 @@ class TabletContainerView extends StatelessWidget {
backgroundKeyboardToolBarColor: TabletContainerViewStyle.keyboardToolbarBackgroundColor,
isLandScapeMode: _responsiveUtils.isLandscapeMobile(context),
insertAttachment: onAttachFileAction,
insertImage: () => onInsertImageAction != null
? onInsertImageAction!(constraints)
insertImage: onInsertImageAction != null
? () => onInsertImageAction!(constraints)
: null,
richTextController: keyboardRichTextController,
titleQuickStyleBottomSheet: AppLocalizations.of(context).titleQuickStyles,