TF-3480 Fix can not click outside the composer when composer open

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-03-13 12:46:47 +07:00
committed by Dat H. Pham
parent e6b2868044
commit 826149dbdb
@@ -53,24 +53,21 @@ class ComposerOverlayView extends StatelessWidget {
.where((view) => !view.controller.isHiddenScreen) .where((view) => !view.controller.isHiddenScreen)
.toList(); .toList();
return SingleChildScrollView( return Padding(
scrollDirection: Axis.horizontal, padding: const EdgeInsetsDirectional.all(ComposerStyle.padding),
child: Padding( child: Row(
padding: const EdgeInsetsDirectional.all(ComposerStyle.padding), crossAxisAlignment: CrossAxisAlignment.end,
child: Row( mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.end, children: [
mainAxisSize: MainAxisSize.min, if (countComposerHidden > 0)
children: [ ExpandComposerButton(
if (countComposerHidden > 0) countComposerHidden: countComposerHidden,
ExpandComposerButton( onRemoveHiddenComposerItem: (controller) =>
countComposerHidden: countComposerHidden, controller.handleClickCloseComposer(context),
onRemoveHiddenComposerItem: (controller) => onShowComposerAction: composerManager.showComposerIfHidden,
controller.handleClickCloseComposer(context), ),
onShowComposerAction: composerManager.showComposerIfHidden, ...visibleComposers,
), ],
...visibleComposers,
],
),
), ),
); );
}); });