Skip to content

Commit

Permalink
Fix the issue with a video after opening the download option, when cl…
Browse files Browse the repository at this point in the history
…icking on download nothing happens.
  • Loading branch information
j-fbriere committed Feb 16, 2024
1 parent 5511c4e commit 28c84fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/tweet/_video.dart
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,13 @@ class _TweetVideoState extends State<TweetVideo> {
var videoUri = Uri.parse(video);
var fileName = '${widget.username}-${path.basename(videoUri.path)}';

Navigator.pop(context);

await downloadUriToPickedFile(
context,
videoUri,
fileName,
onStart: () {
Navigator.pop(context);
ScaffoldMessenger.of(context).clearSnackBars();
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
content: Text(L10n.of(context).downloading_media),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html

version: 3.7.3+37
version: 3.7.4+38

environment:
sdk: ">=2.18.0 <3.0.0"
Expand Down

0 comments on commit 28c84fd

Please sign in to comment.