|
|
@@ -542,8 +542,9 @@ class _ShareAlertContentState extends State<_ShareAlertContent> { |
|
|
|
} |
|
|
|
|
|
|
|
try { |
|
|
|
// 保存到本地路径 |
|
|
|
final tempDir = await getTemporaryDirectory(); |
|
|
|
// 保存到本地路径await getTemporaryDirectory(); |
|
|
|
// final tempDir = |
|
|
|
final tempDir = await getApplicationSupportDirectory(); |
|
|
|
final file = await File('${tempDir.path}/image.jpg').create(); |
|
|
|
file.writeAsBytesSync(_shareDataModel.poster); |
|
|
|
|
|
|
|