FLUTTER ECOSYSTEM

rohit1814/flutter_open_whatsapp

Um plug-in do Flutter para abrir o WhatsApp e enviar mensagem para um único número.

Capa do projeto flutter_open_whatsapp
Stars
21
Forks
23
Último push (UTC)
9 de nov. de 2021
Status do projeto
Ativo
Rohit Kesarwani GitHub avatar
GITHUB User

Rohit Kesarwani ↗

Indraprastha Institute of Information Technology
LinguagensDartJavaSwiftRubyObjective-C

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 2 itens
  • flutter{"sdk":"flutter"}
  • flutter_testDesenvolvimento{"sdk":"flutter"}

README original

Texto original em inglês. Visite o GitHub para a versão atual.

Expandir / recolher 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.