From aca81431aa010089ddd8f2c9775f2fadb5b28a42 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Mon, 6 Jan 2025 21:53:35 +0800 Subject: [PATCH] :bug: Fix desktop share post as image do not include file extension name --- lib/widgets/post/post_item.dart | 2 +- pubspec.lock | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/widgets/post/post_item.dart b/lib/widgets/post/post_item.dart index 62bfdb1..a748fef 100644 --- a/lib/widgets/post/post_item.dart +++ b/lib/widgets/post/post_item.dart @@ -113,7 +113,7 @@ class PostItem extends StatelessWidget { sharePositionOrigin: box!.localToGlobal(Offset.zero) & box.size, ); } else { - await FileSaver.instance.saveFile(name: 'Solar Network Post #${data.id}', file: imageFile); + await FileSaver.instance.saveFile(name: 'Solar Network Post #${data.id}.png', file: imageFile); } await imageFile.delete(); diff --git a/pubspec.lock b/pubspec.lock index e0f02c0..4fa2dc5 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -700,10 +700,10 @@ packages: dependency: "direct main" description: name: flutter_markdown - sha256: "255b00afa1a7bad19727da6a7780cf3db6c3c12e68d302d85e0ff1fdf173db9e" + sha256: e37f4c69a07b07bb92622ef6b131a53c9aae48f64b176340af9e8e5238718487 url: "https://pub.dev" source: hosted - version: "0.7.4+3" + version: "0.7.5" flutter_native_splash: dependency: "direct dev" description: