This commit is contained in:
Moustapha Kodjo Amadou 2025-05-30 19:10:10 +01:00
parent 93f25eaccb
commit 01e03f033c

View file

@ -67,7 +67,9 @@ class _DownloadFileScreenState extends ConsumerState<DownloadFileScreen> {
children: [ children: [
TextButton( TextButton(
onPressed: () async { onPressed: () async {
await _subscription?.cancel(); try {
await _subscription?.cancel();
} catch (_) {}
if (context.mounted) { if (context.mounted) {
Navigator.pop(context); Navigator.pop(context);
} }