This commit is contained in:
2025-09-19 13:15:07 +05:30
parent c47862bd60
commit b00bc6c8c0

View File

@@ -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',
); );
} }