flutter_tawk 0.0.3 copy "flutter_tawk: ^0.0.3" to clipboard
flutter_tawk: ^0.0.3 copied to clipboard

outdated

Tawk widget for Flutter.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:flutter_tawk/flutter_tawk.dart';

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

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text('Flutter Tawk'),
          backgroundColor: Color(0XFFF7931E),
          elevation: 0,
        ),
        body: Tawk(
          directChatLink: 'YOUR_DIRECT_CHAT_LINK',
          visitor: TawkVisitor(
            name: 'Ayoub AMINE',
            email: 'ayoubamine2a@gmail.com',
          ),
          onLoad: () {
            print('Hello Tawk!');
          },
          onLinkTap: (String url) {
            print(url);
          },
          placeholder: Center(
            child: Text('Loading...'),
          ),
        ),
      ),
    );
  }
}
63
likes
0
pub points
92%
popularity

Publisher

unverified uploader

Tawk widget for Flutter.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, webview_flutter

More

Packages that depend on flutter_tawk