Last updated:
0 purchases
open whatsapp
Flutter Open WhatsApp #
A Flutter plugin to open WhatsApp and send message to single number in Android and iOS without saving user's number.
copied to clipboard
Installation #
To use the plugin, add 'open_whatsapp' as a dependency in your pubspec.yaml file.
copied to clipboard
Plugin package link #
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'),
)
),
),
);
}
copied to clipboard
}
Example #
Refer to the example directory of flutter app.
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.