flutter_open_whatsapp 0.1.0 copy "flutter_open_whatsapp: ^0.1.0" to clipboard
flutter_open_whatsapp: ^0.1.0 copied to clipboard

outdated

A new Flutter plugin.

Flutter Open WhatsApp #

A Flutter plugin to open WhatsApp and send message to single number in Android and iOS.

Installation #

To use the plugin, add 'flutter_open_whatsapp' as a dependency in your pubspec.yaml file.

Usage #

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

void main() => runApp(MyApp());

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

class _MyAppState extends State

 @override
 Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       appBar: AppBar(
         title: const Text('Plugin example app'),
       ),
       body: Center(
         child: MaterialButton(onPressed: (){
           FlutterOpenWhatsapp.sendSingleMessage("918179015345", "Hello");
         },
           child: Text('Running on: $_platformVersion\n'),
         )
       ),
     ),
   );
 }

}

Example #

Refer to the example directory of flutter app.
87
likes
0
pub points
86%
popularity

Publisher

unverified uploader

A new Flutter plugin.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_open_whatsapp