kipps_chatbot 1.2.0
kipps_chatbot: ^1.2.0 copied to clipboard
kipps_chatbot is a Flutter package that simplifies the integration of KIPPs AI chatbot into your applications.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:kipps_chatbot/kipps_chatbot.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: const MyHomePage(),
debugShowCheckedModeBanner: false,
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key});
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Home Page'),
),
body: const Center(
child: Text('Press the chat button to open the chatbot.'),
),
floatingActionButton: const ChatbotIntegration(
chatbotId:
'868aafc1-74b3-4c44-93ec-8fac3b4b7cf3', // Update with your chatbot ID
),
);
}
}