flutter_tawk_to_chat 0.4.0 copy "flutter_tawk_to_chat: ^0.4.0" to clipboard
flutter_tawk_to_chat: ^0.4.0 copied to clipboard

This plugin allows you to easily add Tawk.to live chat functionality to your Flutter applications, enabling real-time communication with your users.

example/lib/main.dart

import 'dart:developer';
import 'package:flutter/material.dart';
import 'package:flutter_tawk_to_chat/flutter_tawk_to_chat.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Flutter Tawk.to'),
          elevation: 0,
        ),
        body: Tawk(
          directChatLink:
              'https://tawk.to/chat/615847b0d326717cb68462c7/', //'YOUR_DIRECT_CHAT_LINK',
          visitor: TawkVisitor(
            name: 'Username',
            email: 'example@gmail.com',
          ),
          onLoad: () {
            log('Hello Tawk!', name: 'TawkTo');
          },
          onLinkTap: (String url) {
            log(url, name: 'Tap url');
          },
          placeholder: const Center(
            child: Text('Loading...'),
          ),
        ),
      ),
    );
  }
}
4
likes
160
points
11
downloads

Publisher

verified publisherycydev.org

Weekly Downloads

This plugin allows you to easily add Tawk.to live chat functionality to your Flutter applications, enabling real-time communication with your users.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_inappwebview

More

Packages that depend on flutter_tawk_to_chat