whatsapp 1.0.5 copy "whatsapp: ^1.0.5" to clipboard
whatsapp: ^1.0.5 copied to clipboard

outdated

A top package for whatsapp business api, send messages, product, media, location through flutter app.

example/example.md

enjoy coding 😃

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

void main() {
  runApp(const MaterialApp(
    home: MyApp(),
  ));
}


class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    whatsapp.setup(
      access_token: 'cXnwup67hgj3QdvpXXXXX==',
      fromNumberId: 1800000000000, //Integer
    );
  }


  Whatsapp whatsapp = Whatsapp();
  @override
  Widget build(BuildContext context) {
      return Scaffold(
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              ElevatedButton(
                child: const Text('Send Message'),
                onPressed: () async {
                  await whatsapp.messagesTemplate(
                    to: 91000000000, //integer
                    template_name: "hello_world"
                  );
                },
              ),
            ],
          ),
        ),
      );
  }
}
192
likes
0
points
772
downloads

Publisher

verified publisherrohitchouhan.com

Weekly Downloads

A top package for whatsapp business api, send messages, product, media, location through flutter app.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http

More

Packages that depend on whatsapp