File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
lib/features/email/presentation/widgets Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ class EmailViewAppBarWidget extends StatelessWidget {
4242
4343 @override
4444 Widget build (BuildContext context) {
45- return LayoutBuilder (builder: (context, constraints) {
45+ final child = LayoutBuilder (builder: (context, constraints) {
4646 return Container (
4747 height: PlatformInfo .isIOS
4848 ? EmailViewAppBarWidgetStyles .heightIOS (context, _responsiveUtils)
@@ -150,6 +150,15 @@ class EmailViewAppBarWidget extends StatelessWidget {
150150 ])
151151 );
152152 });
153+
154+ return PopScope (
155+ canPop: false ,
156+ onPopInvokedWithResult: (_, __) {
157+ onBackAction ();
158+ return ;
159+ },
160+ child: child,
161+ );
153162 }
154163
155164 bool _supportDisplayMailboxNameTitle (BuildContext context) {
You can’t perform that action at this time.
0 commit comments