flutter_launch 0.2.0
flutter_launch: ^0.2.0 copied to clipboard

Flutter Android iOS

Flutter Lauch

Flutter launch WhatsApp #

A Flutter plugin for iOS and Android to open whatsApp.

pub package

Installation #

First, add flutter_launch_whatsapp as a dependency in your pubspec.yaml file.

iOS #

Add the following entry to your Info.plist file, located in


Android #


Example #

import 'package:flutter/material.dart';
import 'package:flutter_launch/flutter_launch.dart';

void main() => runApp(new MyApp());

class MyApp extends StatefulWidget {
  _MyAppState createState() => new _MyAppState();

class _MyAppState extends State<MyApp> {

  initState() {

  void whatsAppOpen() async {
    await FlutterLaunch.launchWathsApp(phone: "5534992016545", message: "Hello");

  Widget build(BuildContext context) {
    return new MaterialApp(
      home: new Scaffold(
        appBar: new AppBar(
          title: new Text('Plugin example app'),
        body: new Center(
          child: FlatButton(
            child: Text("Open WhatsApp"),
            onPressed: () {