iOS Build #3
This commit is contained in:
@@ -491,7 +491,7 @@ class _AccountStatementScreen extends State<AccountStatementScreen> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Add for IOS
|
// Add for IOS
|
||||||
else if (Platform.isIOS) {
|
else if (Platform.isIOS) {
|
||||||
// On iOS, we save to a temporary directory and then open the share sheet.
|
// On iOS, we save to a temporary directory and then open the share sheet.
|
||||||
final tempDir = await getTemporaryDirectory();
|
final tempDir = await getTemporaryDirectory();
|
||||||
final file = await File('${tempDir.path}/$fileName').create();
|
final file = await File('${tempDir.path}/$fileName').create();
|
||||||
@@ -500,7 +500,6 @@ class _AccountStatementScreen extends State<AccountStatementScreen> {
|
|||||||
// Use share_plus to open the iOS share dialog
|
// Use share_plus to open the iOS share dialog
|
||||||
await Share.shareXFiles(
|
await Share.shareXFiles(
|
||||||
[XFile(file.path)],
|
[XFile(file.path)],
|
||||||
text: 'Account Statement',
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user