flutter_tawk

pub package

Tawk widget for Flutter.

🚀 Showcase

Install

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

Import

import 'package:flutter_tawk/flutter_tawk.dart';

How To Use

Tawk(
    directChatLink: 'YOUR_DIRECT_CHAT_LINK',
    visitor: TawkVisitor(
        name: 'Ayoub AMINE',
        email: 'ayoubamine2a@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

Contributions

Feel free to contribute to this project.

If you find a bug or want a feature, but don't know how to fix/implement it, please fill an issue.
If you fixed a bug or implemented a new feature, please send a pull request.

Changelog

CHANGELOG

License

MIT License

Libraries

flutter_tawk