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

A composable, multi-platform, Future-based plugin for shoutout sms gateway

shoutsms #

A new flutter plugin project.

Getting Started #

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

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

Using #

The easiest way to use this library is via the top-level functions

import 'package:shoutsms/shoutsms.dart';

vreturn MaterialApp(
      home: Scaffold(
          key: _scaffoldKey,
          appBar: AppBar(
            title: const Text('Plugin example app'),
          ),
          body: Center(
            child: TextButton(
              style: TextButton.styleFrom(
                textStyle: const TextStyle(fontSize: 20),
              ),
              onPressed: () async {
                await Shoutsms.call(
                        destination: "94XXXXXXX",
                        code: "9890",
                        customMessage: "Your verification sms cose is",
                        apiKey:
                            "MshoutOutAPIKEY")
                    .then((value) {
                  if (value?.statusCode == 200) {
                    print('Code has been sent successfully');
                  } else {
                    print('Code has send failed');
                  }
                });
              },
              child: const Text('Send SMS'),
            ),
          )),
    );

Register with shoutout #

https://getshoutout.com/

1
likes
100
points
2
downloads

Publisher

unverified uploader

Weekly Downloads

A composable, multi-platform, Future-based plugin for shoutout sms gateway

Documentation

API reference

License

unknown (license)

Dependencies

equatable, flutter, http

More

Packages that depend on shoutsms

Packages that implement shoutsms