-
Notifications
You must be signed in to change notification settings - Fork 45
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
Fix:App crash related to flutter_contacts #251
Fix:App crash related to flutter_contacts #251
Conversation
|
final result = FlutterContacts.insertContact(contact).then((value) { | ||
print('add contact dialog closed'); | ||
}).catchError((error) { | ||
print('pata nai bhai kya error hai'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of just printing, can we show some snackbar or any other notification widget to show user something went wrong? Or Unable to save / do the action?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes,we can show the snackbar same as one used in no internet connection with text "you need permission to create the contact"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm Thanks @ayyysh04 🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. ✨
-added contacts user-permissions in androidManifest