flutter_sms_pro 1.0.0 copy "flutter_sms_pro: ^1.0.0" to clipboard
flutter_sms_pro: ^1.0.0 copied to clipboard

A new Flutter plugin for sms sending.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('Flutter sms plus example app')),
        body: Center(
          child: ElevatedButton(
            onPressed: () async {
              var message = '''
Hi!
Join me on the {App Name} and earn credits! Use the referral code below when you sign up.
Referral code: {"referralCode"}
I look forward to seeing you on the App!
Download link: "{invitelink}"

''';
              var recipients = ['+9112346890', '+13059197071'];

              var isSent = await FlutterSmsPro.sendSMS(
                message: message,
                recipients: recipients,
              );
              print('isSent:$isSent');
            },
            child: Text('Send message '),
          ),
        ),
      ),
    );
  }
}
0
likes
0
points
13
downloads

Publisher

unverified uploader

Weekly Downloads

A new Flutter plugin for sms sending.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, rename, url_launcher

More

Packages that depend on flutter_sms_pro

Packages that implement flutter_sms_pro