flutter_bot 0.0.3
flutter_bot: ^0.0.3 copied to clipboard
A Flutter chatbot widget
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:flutter_bot/chat_widget.dart';
void main() {
runApp(const MyECommerceApp());
}
class MyECommerceApp extends StatelessWidget {
const MyECommerceApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Sample App',
home: const HomePage(),
debugShowCheckedModeBanner: false,
);
}
}
class HomePage extends StatelessWidget {
const HomePage({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
body: Stack(
children: [
Align(
alignment: Alignment.centerRight,
child: ChatWidget(
configuration: BotConfiguration(
projectSecretKey: '28062ab5-bd0b-444c-b426-3db0451c181b',
userID: "2",
),
),
),
],
),
);
}
}