smsker 0.1.1 copy "smsker: ^0.1.1" to clipboard
smsker: ^0.1.1 copied to clipboard

Flutter plugin for sending SMS.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:smsker/smsker.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  void _sendMessage() async {
    await Smsker.sendSms(phone: "123123123", message: "Hi!");
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Smsker example app'),
        ),
        body: Center(
          child: RaisedButton(
              child: Text("Send My SMS"),
              onPressed: () {
                _sendMessage();
              }),
        ),
      ),
    );
  }
}
7
likes
30
pub points
13%
popularity

Publisher

unverified uploader

Flutter plugin for sending SMS.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on smsker