We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android 10
share_plus
^8.0.3
3.22.1
Crash app on android when transfer file
final result = await ShareUtils.shareFiles( [File("$directory/screenshot.png").path], subject: "Chia sẻ", s ShareUtils { static Future<void> share( String text, { String? subject, Rect? sharePositionOrigin, }) async { final result = await Share.share(text, subject: subject, sharePositionOrigin: sharePositionOrigin); // AppAnalyticService.share // .logShareEvent(method: result.raw, contentType: 'text', itemId: text); return; } static Future<void> shareFiles( List<String> paths, { List<String>? mimeTypes, String? subject, String? text, Rect? sharePositionOrigin, }) async { final result = await Share.shareXFiles([ XFile( paths[0], ) ], subject: subject, text: text, sharePositionOrigin: sharePositionOrigin); // AppAnalyticService.share.logShareEvent( // method: result.raw, contentType: 'image', itemId: paths.first); return; } }
d
flutter doctor -v
flutter pub upgrade
flutter clean
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Platform
Android 10
Plugin
share_plus
Version
^8.0.3
Flutter SDK
3.22.1
Steps to reproduce
Crash app on android when transfer file
![image](https://private-user-images.githubusercontent.com/94519158/336785203-541237a7-446f-457d-9c98-c8c6156e6661.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk5Nzc1MzksIm5iZiI6MTcxOTk3NzIzOSwicGF0aCI6Ii85NDUxOTE1OC8zMzY3ODUyMDMtNTQxMjM3YTctNDQ2Zi00NTdkLTljOTgtYzhjNjE1NmU2NjYxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzAzVDAzMjcxOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg0N2UxNDgyMWZhMDBlNGY4YjMwMGRjOTJiYmFiZGE1YTk0MmZiMzNlODMzY2ExMzQxYjk4ODVlMDUxYjY1MGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.R3G34INFtMjPyeEIfdaaUFD6kCXY-D085KXzUvV1ECQ)
Code Sample
Logs
Flutter Doctor
Checklist before submitting a bug
flutter pub upgrade
flutter clean
The text was updated successfully, but these errors were encountered: