fix: Fixed bug where user could not close app from documents page using back button

This commit is contained in:
Anton Stubenbord
2023-05-11 16:25:05 +02:00
parent c8ff261fc7
commit 0c649c8dda

View File

@@ -150,8 +150,9 @@ class _DocumentsPageState extends State<DocumentsPage> with SingleTickerProvider
onWillPop: () async {
if (context.read<DocumentsCubit>().state.selection.isNotEmpty) {
context.read<DocumentsCubit>().resetSelection();
return false;
}
return false;
return true;
},
child: Stack(
children: [