Skip to content
New issue

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

share to whatsapp not working #36

Closed
armandojimenez opened this issue Apr 24, 2021 · 4 comments
Closed

share to whatsapp not working #36

armandojimenez opened this issue Apr 24, 2021 · 4 comments

Comments

@armandojimenez
Copy link

getting this error on ios

VERBOSE-2:ui_dart_state.cc(186)] Unhandled Exception: type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'Map<String, Object>' in type cast
#0 FlutterShareMe.shareToWhatsApp
package:flutter_share_me/flutter_share_me.dart:37
#1 _SharePageState._shareToWhatsapp.
package:believe/…/pages/share_page.dart:424

@armandojimenez
Copy link
Author

Anyone know how to fix this?

@lizhuoyuan
Copy link
Collaborator

package:believe/…/pages/share_page.dart:424
Maybe there is a problem with the type of data received here, try using var?

@armandojimenez
Copy link
Author

Even if I pass nothing, so it uses the default empty value, it crash at the first line when trying to cast
final Map<String, Object> arguments = Map<String, dynamic>() as Map<String, Object>;

@lizhuoyuan
Copy link
Collaborator

I’m not sure what type of result is returned. I suggest you print it first. It may be because the data types are inconsistent and cannot be forced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants