fix: Menu closes on download

This commit is contained in:
Deven Joshi
2021-01-20 16:04:06 +05:30
parent 38dd718914
commit ded8b37e61
@@ -83,12 +83,12 @@ class ImageActionsModal extends StatelessWidget {
urls[currentIndex].assetUrl ??
urls[currentIndex].thumbUrl;
Navigator.pop(context);
if (urls[currentIndex].type == 'video') {
await _saveVideo(url);
Navigator.pop(context);
} else {
await _saveImage(url);
Navigator.pop(context);
}
},
),