TF-2532 Remove attachment/inlineImage icon in keyboard toolbar on tablet
This commit is contained in:
@@ -243,15 +243,6 @@ class ComposerView extends GetWidget<ComposerController> {
|
|||||||
keyboardRichTextController: controller.richTextMobileTabletController!.richTextController,
|
keyboardRichTextController: controller.richTextMobileTabletController!.richTextController,
|
||||||
onCloseViewAction: () => controller.handleClickCloseComposer(context),
|
onCloseViewAction: () => controller.handleClickCloseComposer(context),
|
||||||
onClearFocusAction: () => controller.clearFocus(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(
|
childBuilder: (context, constraints) => Container(
|
||||||
color: ComposerStyle.mobileBackgroundColor,
|
color: ComposerStyle.mobileBackgroundColor,
|
||||||
child: Column(
|
child: Column(
|
||||||
|
|||||||
@@ -51,8 +51,8 @@ class TabletContainerView extends StatelessWidget {
|
|||||||
backgroundKeyboardToolBarColor: TabletContainerViewStyle.keyboardToolbarBackgroundColor,
|
backgroundKeyboardToolBarColor: TabletContainerViewStyle.keyboardToolbarBackgroundColor,
|
||||||
isLandScapeMode: _responsiveUtils.isLandscapeMobile(context),
|
isLandScapeMode: _responsiveUtils.isLandscapeMobile(context),
|
||||||
insertAttachment: onAttachFileAction,
|
insertAttachment: onAttachFileAction,
|
||||||
insertImage: () => onInsertImageAction != null
|
insertImage: onInsertImageAction != null
|
||||||
? onInsertImageAction!(constraints)
|
? () => onInsertImageAction!(constraints)
|
||||||
: null,
|
: null,
|
||||||
richTextController: keyboardRichTextController,
|
richTextController: keyboardRichTextController,
|
||||||
titleQuickStyleBottomSheet: AppLocalizations.of(context).titleQuickStyles,
|
titleQuickStyleBottomSheet: AppLocalizations.of(context).titleQuickStyles,
|
||||||
|
|||||||
Reference in New Issue
Block a user