flutter_sms 1.1.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 96

Flutter Community: flutter_sms

Buy Me A Coffee Donate

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 FlutterSms
        .sendSMS(message: message, recipients: recipents)
        .catchError((onError) {

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 SMSAndroid MMS

You can find other screenshots here.

1.1.0 #

  • Updating for latest ios/android flutter plugin template

1.0.1 #

  • Android result added

1.0.0 * 04.29.2019 #

  • Reduce minSdkVersion to 16
  • Fix crash on android when recipients is empty (substring on empty string)
  • Add canSendSMS API
    • Checks if device is SMS capable (iOS and Android)
    • Checks if smsto: Intent is resolved and resulting activity exported (Android)
  • sendSMS: Return error when device is not SMS capable (Android)
  • Remove unused AndroidX dependency
  • Use Intent.ACTION_SENDTO and Intent.EXTRA_TEXT to increase message app support coverage

0.2.0 * 04.06.2019 #

  • Updating example to be desktop aware

0.1.0 #

  • Fix for Android Multiple People
  • Fixes Issues #8 and #4

0.0.5 #

  • Removed SMS Permissions on Android

0.0.4 #

  • Bug Fix Send Result
  • Added Can Send Text

0.0.3 #

  • Bug Fix for iOS Simulator Error

0.0.2 #

  • Fixing Version

0.0.1 #

  • SMS and MMS for Android and iOS


flutter_sms_example #

Demonstrates how to use the flutter_sms plugin.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  flutter_sms: ^1.1.0

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:flutter_sms/flutter_sms.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jan 21, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.0
  • pana: 0.13.4
  • Flutter: 1.12.13+hotfix.5

Health issues and suggestions

Document public APIs. (-1 points)

5 out of 5 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies