flutter_tawk_to_chat 0.4.0%2B1

SDKflutter
Platformandroidioswindowsmacos

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

flutter_tawk_to_chat

This package is a fork of flutter_tawk package.

pub package

Tawk.to widget for Flutter.

🚀 Showcase

Install

To use this package, add flutter_tawk_to_chat as dependency in your pubspec.yaml file.

Import

import 'package:flutter_tawk_to_chat/flutter_tawk_to_chat.dart';

How To Use

Tawk(
    directChatLink: 'YOUR_DIRECT_CHAT_LINK',
    visitor: TawkVisitor(
        name: 'Username',
        email: 'example@gmail.com',
    ),
)

See the example directory for the complete sample app.

Customization

Tawk

ParameterTypeDefaultDescriptionRequired
directChatLinkStringnullTawk direct chat link.Yes
visitorTawkVisitornullObject used to set the visitor name and email.No
onLoadFunctionnullCalled right after the widget is rendered.No
onLinkTapFunctionnullCalled when a link pressed.No
placeholderWidgetCenter(child: CircularProgressIndicator())Render your own loading widget.No

TawkVisitor

ParameterTypeDefaultDescriptionRequired
nameStringnullVisitor's name.No
emailStringnullVisitor's email.No
hashStringnullSecure mode.No

TawkController

MethodDescription
isChatOngoing()Checks if a chat is ongoing. Returns a Future<bool>.
isVisitorEngaged()Checks if the visitor is engaged. Returns a Future<bool>.
endChat()Ends the current chat session.
canGoBack()Checks if the web view can navigate back. Returns a Future<bool>.
goBack()Navigates back in the web view history. Returns a Future<void>.

Changelog

CHANGELOG

License

MIT License