Smsker

Send SMS within the Flutter application.

  • Android sender based on SmsManager
  • iOS sender based on MFMessageComposeViewController

🏰 Usage

Import package:smsker/smsker.dart, call sendSms() within async method:

import 'package:smsker/smsker.dart';

_sendMessage() async {
    await Smsker.sendSms(
        phone: "81234567890", 
        message: "Link! Wake Up!");
}

RaisedButton(
    child: Text("Save the Kingdom!"),
    onPressed: () {
        _sendMessage();
    }
)

🐞 Known Issues

On iOS after showing modal window of MFMessageComposeViewController system generates new view under top container. That is what for you need additional top-down swipe to return to Flutter application.

Libraries

smsker