tqp_chat_sdk 1.0.0
tqp_chat_sdk: ^1.0.0 copied to clipboard
Gói SDK mở trang chat chatbot của bạn chỉ với 1 dòng lệnh.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:tqp_chat_sdk/midesk_chat_sdk.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Chat SDK Demo',
home: Scaffold(
appBar: AppBar(title: const Text('Demo Chat SDK')),
body: Center(
child: ElevatedButton(
onPressed: () {
ChatSdk.openChat(
name: 'Nguyen Van A',
phone: '0909123456',
email: 'vana@gmail.com',
);
},
child: const Text('Mở Chat'),
),
),
),
);
}
}