Update README.md

This commit is contained in:
Rody Davis 2018-08-16 13:45:47 -04:00 committed by GitHub
parent 4a15d251b3
commit 1e0ab2738f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,8 +44,11 @@ Create a function for sending messages.
String _message = "";
void _sendSMS(String message, List<String> 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).
You can find other [screenshots here](https://github.com/AppleEducate/flutter_sms/tree/master/screenshots).