diff --git a/README.md b/README.md index 458239f..64e83a3 100644 --- a/README.md +++ b/README.md @@ -44,8 +44,11 @@ Create a function for sending messages. String _message = ""; void _sendSMS(String message, List recipents) async { - String _result = - await FlutterSms.sendSMS(message: message, recipients: recipents); + String _result = await FlutterSms + .sendSMS(message: message, recipients: recipents) + .catchError((onError) { + print(onError); + }); setState(() => _message = _result); } ``` @@ -62,4 +65,4 @@ iOS SMS | Android MMS :-------------------------:|:-------------------------: ![alt-text-1](https://github.com/AppleEducate/flutter_sms/blob/master/screenshots/ios_sms.PNG) | ![alt-text-2](https://github.com/AppleEducate/flutter_sms/blob/master/screenshots/android_mms.png) -You can find other [screenshots here](https://github.com/AppleEducate/flutter_sms/tree/master/screenshots). \ No newline at end of file +You can find other [screenshots here](https://github.com/AppleEducate/flutter_sms/tree/master/screenshots).