Go to file
Rody Davis 6b6008c64d
Merge pull request #49 from acoutts/master
Migrated to android v2 embedding
2021-09-27 09:00:35 -07:00
.github/workflows updating workflow 2021-04-05 14:07:16 -04:00
.vscode updating pod spec 2019-10-28 11:08:37 -04:00
android Migrated to android v2 embedding 2021-08-13 16:34:10 -04:00
example Update build.gradle 2021-08-13 16:38:18 -04:00
ios updating swift plugin 2019-10-28 11:15:21 -04:00
lib full null safety 2021-04-05 14:35:20 -04:00
screenshots updated readme 2018-08-16 09:58:07 -04:00
.DS_Store updating to latest version 2019-10-28 11:01:20 -04:00
.gitattributes Initial commit 2018-08-15 13:42:41 -04:00
.gitignore Update .gitignore 2020-04-30 18:40:19 -07:00
.metadata Initial commit 2018-08-15 13:42:41 -04:00
CHANGELOG.md Migrated to android v2 embedding 2021-08-13 16:34:10 -04:00
flutter_sms.iml updating project 2019-10-28 11:57:56 -04:00
LICENSE Initial commit 2018-08-15 13:42:41 -04:00
pubspec.yaml Migrated to android v2 embedding 2021-08-13 16:34:10 -04:00
README.md updating readme 2021-04-05 14:09:40 -04:00

Flutter Community: flutter_sms

Buy Me A Coffee Donate github pages GitHub stars flutter_sms

flutter_sms

alt-text-1

Online Demo: https://fluttercommunity.github.io/flutter_sms/

Description

Flutter Plugin for sending SMS and MMS on Android and iOS. If you send to more than one person it will send as MMS. On the iOS if the number is an iPhone and iMessage is enabled it will send as an iMessage.

How To Use

You can send multiple ways:

  1. Message and No People
  2. People and No Message
  3. Message and People

This will populate the correct fields.

Example

Make sure to Install and Import the Package.

import 'package:flutter_sms/flutter_sms.dart';

Create a function for sending messages.

void _sendSMS(String message, List<String> recipents) async {
 String _result = await sendSMS(message: message, recipients: recipents)
        .catchError((onError) {
      print(onError);
    });
print(_result);
}

You can quickly send the message with this function.

String message = "This is a test message!";
List<String> recipents = ["1234567890", "5556787676"];

_sendSMS(message, recipents);

Screenshots

iOS SMS Android MMS
alt-text-1 alt-text-2

You can find other screenshots here.