open_whatsapp 0.0.1 icon indicating copy to clipboard operation
open_whatsapp: ^0.0.1 copied to clipboard

open_whatsapp with null safety.

Flutter Open WhatsApp #

  A Flutter plugin to open WhatsApp and send message to single number in Android and iOS without saving user's number.

Installation #

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

plug-in package

Usage #

import 'package:open_whatsapp/open_whatsapp.dart';
   
 void main() => runApp(MyApp());
   
    class MyApp extends StatefulWidget {
     @override
     _MyAppState createState() => _MyAppState();
 }
  
 class _MyAppState extends State<MyApp> {

 @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.
5
likes
100
pub points
82%
popularity

Publisher

unverified uploader

open_whatsapp with null safety.

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on open_whatsapp