TF-3766 Close bottom sheet after do any action: new folder, move, rename, hide folder, ... on mailbox view

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-06-17 09:20:16 +07:00
committed by Dat H. Pham
parent ecc3cf81d4
commit ab03cfaf14
3 changed files with 18 additions and 12 deletions
@@ -253,13 +253,13 @@ class _MailboxSearchedItemBuilderState extends State<MailboxSearchedItemBuilder>
iconSize: 16,
padding: const EdgeInsetsDirectional.all(2),
onTapActionAtPositionCallback: (position) {
if (!_responsiveUtils.isScreenWithShortestSide(context)) {
if (PlatformInfo.isCanvasKit) {
_onPopupMenuVisibleChange(true);
}
widget.onClickOpenMenuMailboxAction
?.call(position, widget.presentationMailbox)
.whenComplete(() {
if (context.mounted && !_responsiveUtils.isScreenWithShortestSide(context)) {
if (context.mounted && PlatformInfo.isCanvasKit) {
_onPopupMenuVisibleChange(false);
}
});