Merge pull request #167 from astubenbord/fix/close-app-documents-page

fix: Update onWillPop return statement
This commit is contained in:
Anton Stubenbord
2023-05-11 16:26:58 +02:00
committed by GitHub

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: [