Fix cannot use Back system button to back to email list from search view on mobile
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -60,7 +60,13 @@ class SearchEmailView extends GetWidget<SearchEmailController>
|
|||||||
child: Container(
|
child: Container(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
child: Column(children: [
|
child: Column(children: [
|
||||||
Container(
|
PopScope(
|
||||||
|
canPop: false,
|
||||||
|
onPopInvokedWithResult: (_, __) {
|
||||||
|
if (!PlatformInfo.isAndroid) return;
|
||||||
|
controller.closeSearchView(context: context);
|
||||||
|
},
|
||||||
|
child: Container(
|
||||||
height: 52,
|
height: 52,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
padding: SearchEmailViewStyle.getAppBarPadding(
|
padding: SearchEmailViewStyle.getAppBarPadding(
|
||||||
@@ -79,6 +85,7 @@ class SearchEmailView extends GetWidget<SearchEmailController>
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
),
|
),
|
||||||
|
),
|
||||||
const Divider(color: AppColor.colorDividerComposer, height: 1),
|
const Divider(color: AppColor.colorDividerComposer, height: 1),
|
||||||
_buildListSearchFilterAction(context),
|
_buildListSearchFilterAction(context),
|
||||||
Obx(() => SearchEmailLoadingBarWidget(
|
Obx(() => SearchEmailLoadingBarWidget(
|
||||||
|
|||||||
Reference in New Issue
Block a user