Closed karansingla007 closed 5 years ago
android
Which device are you using?
one plus 7
Can you share your code here which you are using to share stuff?
GestureDetector( child: IconShare(), onTap: () { print('click share profile'); WcFlutterShare.share( sharePopupTitle: 'Share', text: profileUrl, mimeType: 'text/plain'); }, ),
Have you tried this on emulator? Because it could be your device issue. Try it on emulator or try restarting your device. This plugin just calls Share intent on android. After that, this intent handles by android O.S.
i tried other device also samsung A20 infinity one plus 6t
Try to replace your code with this one. And let know the value you see in console for time diff
GestureDetector( child: IconShare(), onTap: () async { print('click share profile'); final startTime = DateTime.now(); print('start time: $startTime'); await WcFlutterShare.share( sharePopupTitle: 'Share', text: profileUrl, mimeType: 'text/plain'); final endTime = DateTime.now(); print('end time: $startTime'); print( 'time diff: ${endTime.millisecond - startTime.millisecond}'); }, ),
i used your code but it is also taking time time diff: 3
It's taking only 3 milliseconds.
I believe there is an issue with your code. Try cloning this repository and run example on your device and let me know if you are facing same issue. I am trying to figure it out if this issue is related to this plugin or your code.
@aarajput
i cloned but it takes too much time to open
Please run flutter doctor
and share its output with me.
Here is completely normal..
Are you talking about android or ios?