flutter_sms 0.0.4

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 88

flutter_sms

alt-text-1

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 prefil the correct fields.

Setup

Android

Add this to your AndroidManifest.xml

<uses-permission android:name="android.permission.SEND_SMS"/>

iOS

Good to go!

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) {
      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 SMSAndroid MMS
alt-text-1alt-text-2

You can find other screenshots here.

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

example/README.md

flutter_sms_example

Demonstrates how to use the flutter_sms plugin.

Getting Started

For help getting started with Flutter, view our online documentation.

Use this package as a library

1. Depend on it

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


dependencies:
  flutter_sms: ^0.0.4

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter packages get

Alternatively, your editor might support flutter packages 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';
  
Version Uploaded Documentation Archive
0.0.4 Nov 16, 2018 Go to the documentation of flutter_sms 0.0.4 Download flutter_sms 0.0.4 archive
0.0.3 Aug 16, 2018 Go to the documentation of flutter_sms 0.0.3 Download flutter_sms 0.0.3 archive
0.0.2 Aug 16, 2018 Go to the documentation of flutter_sms 0.0.2 Download flutter_sms 0.0.2 archive
0.0.1 Aug 16, 2018 Go to the documentation of flutter_sms 0.0.1 Download flutter_sms 0.0.1 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
81
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
88
Learn more about scoring.

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

  • Dart: 2.1.0
  • pana: 0.12.10
  • Flutter: 1.1.7

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health issues and suggestions

Document public APIs. (-1 points)

5 out of 5 API elements (library, class, field or method) have no adequate dartdoc content. Good documentation improves code readability and discoverability through search.

Maintenance suggestions

Package is pre-v0.1 release. (-10 points)

While there is nothing inherently wrong with versions of 0.0.*, it usually means that the author is still experimenting with the general direction of the API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.28.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11
meta 1.1.6 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8