v0.1.2
flutter_open_whatsapp
一個全新的 Flutter 插件,可在不儲存使用者號碼的情況下向單一使用者發送 WhatsApp 消息。
87喜歡 66近 30 天下載40Pub 分數
平台暫無資料
一個 Flutter 外掛程式,用於開啟 WhatsApp 並向單一號碼發送訊息。
{"sdk":"flutter"}{"sdk":"flutter"}以下為英文專案原文快照,最新內容請造訪 GitHub。
A Flutter plugin to open WhatsApp and send message to single number in Android and iOS without saving user's number.
To use the plugin, add 'flutter_open_whatsapp' as a dependency in your pubspec.yaml file.
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<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'),
)
),
),
);
}
}
Refer to the example directory of flutter app.