fix: Menu closes on download
This commit is contained in:
@@ -83,12 +83,12 @@ class ImageActionsModal extends StatelessWidget {
|
|||||||
urls[currentIndex].assetUrl ??
|
urls[currentIndex].assetUrl ??
|
||||||
urls[currentIndex].thumbUrl;
|
urls[currentIndex].thumbUrl;
|
||||||
|
|
||||||
|
Navigator.pop(context);
|
||||||
|
|
||||||
if (urls[currentIndex].type == 'video') {
|
if (urls[currentIndex].type == 'video') {
|
||||||
await _saveVideo(url);
|
await _saveVideo(url);
|
||||||
Navigator.pop(context);
|
|
||||||
} else {
|
} else {
|
||||||
await _saveImage(url);
|
await _saveImage(url);
|
||||||
Navigator.pop(context);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user