[mob][photos] fix video editor back button

This commit is contained in:
Aman Raj Singh Mourya
2024-10-14 19:02:15 +05:30
parent 44ba81e781
commit 73ee5a8131

View File

@@ -99,6 +99,15 @@ class _VideoEditorPageState extends State<VideoEditorPage> {
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,