搜尋套件、儲存庫與 APP 分類

套件詳情v0.1.2

flutter_open_whatsapp

一個全新的 Flutter 插件,可在不儲存使用者號碼的情況下向單一使用者發送 WhatsApp 消息。

近 30 天下載
164
喜歡數
87
Pub 分數
40

安裝套件

flutter pub add flutter_open_whatsapp

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個 Flutter 插件,透過指定電話號碼直接向單一使用者發送 WhatsApp 訊息,無需將號碼儲存在裝置的通訊錄中。它利用原生 WhatsApp 意圖開啟應用程式並預填訊息,簡化應用內的通訊流程。非常適合客戶支援、訂單確認或快速訊息功能。此插件輕量且可順暢整合至現有的 Flutter 項目中。

適用情境

  • 發送支援訊息
  • 訂單確認通知
  • 快速客戶聯絡
  • 透過 WhatsApp 分享連結
  • 自動訊息觸發

主要特色

  • 直接訊息共享
  • 無需儲存聯絡人
  • 原生 WhatsApp 結合
  • 簡單 API
  • 跨平台相容性

適合對象

  • 客戶服務應用
  • 電商平台
  • 事件提醒系統
  • 用戶入門流程
  • 以訊息為主的應用程式

使用建議

  • 需要在設備上安裝 WhatsApp
  • 僅限單一收件人
  • 依賴於 WhatsApp 的意圖處理
  • 可能無法在所有安卓設備上運作
  • 無訊息遞送確認

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

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 'flutter_open_whatsapp' as a dependency in your pubspec.yaml file.

Plugin package link

plug-in package

Usage

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'),
         )
       ),
     ),
   );
 }

}

Example

Refer to the example directory of flutter app.

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。