Flutter Tawk Chat API



In tyour Pubspec.yaml:

flutter_tawk: ^0.1.0




 import 'package:flutter/material.dart';

import 'package:flutter_tawk/flutter_tawk.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'),
backgroundColor: const Color(0XFFF7931E),
elevation: 0,
),
body: Tawk(
directChatLink: 'https://tawk.to/chat/65b9c9990ff6374032c6bb80/1hlern02b',
visitor: TawkVisitor(
name: 'Ayoub AMINE',
email: 'ayoubamine2a@gmail.com',
),
onLoad: () {
print('Hello Tawk!');
},
onLinkTap: (String url) {
print(url);
},
placeholder: const Center(
child: Text('Loading...'),
),
),
),
);
}
}



Rakibul hasan

I am Rakibul hasan,Front and Back-End Developer.I am also good at database like mysql,Firebase,mssql. I'm a Workaholic Person and I love my job as a mobile application developer i never get tired for it. Its been always fasinating to me working for new creation. I am very passionate about my work.I do my job passionately and dedicatedly.I try to do my project with clean code and gather efficiency. The greatest quality of mine is patience.I can code all day long. I never feel bored during coding and i can't take rest until my code is completed.I can adapt anything very quickly. I am also very sincere,responsible,hard working and confident regarding my works.Each and Every Project is important to me and I like to take Challenge.

Post a Comment

Previous Post Next Post