From 73ee5a8131ff4999e5d2b0909d8cbe2387371f88 Mon Sep 17 00:00:00 2001 From: Aman Raj Singh Mourya Date: Mon, 14 Oct 2024 19:02:15 +0530 Subject: [PATCH] [mob][photos] fix video editor back button --- mobile/lib/ui/tools/editor/video_editor_page.dart | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mobile/lib/ui/tools/editor/video_editor_page.dart b/mobile/lib/ui/tools/editor/video_editor_page.dart index a79b7e9454..392d93034c 100644 --- a/mobile/lib/ui/tools/editor/video_editor_page.dart +++ b/mobile/lib/ui/tools/editor/video_editor_page.dart @@ -99,6 +99,15 @@ class _VideoEditorPageState extends State { Widget build(BuildContext context) { return PopScope( canPop: false, + onPopInvoked: (didPop) { + if (!didPop) { + if (_isExporting.value) { + return; + } else { + replacePage(context, DetailPage(widget.detailPageConfig)); + } + } + }, child: Scaffold( appBar: AppBar( elevation: 0,