ikchatbot 1.0.0 ikchatbot: ^1.0.0 copied to clipboard
ikChatBot is a powerful fully customizable chatbot you can add to your flutter project for all plaftorms
ikChatBot Flutter Package
The ikChatBot Flutter package provides an easy way to integrate a customizable chatbot into your Flutter applications. This package allows you to quickly add a chat interface with interactive responses and user-friendly configuration options. With ikChatBot, you can enhance user engagement and provide automated assistance through a chat-based interface.
Features #
Getting started #
ikChatBot Package #
The ikChatBot
package provides a customizable chatbot widget for Flutter applications. This widget allows you to easily integrate a chatbot into your app with various customization options.
Features #
- Customizable chatbot appearance
- User and bot icons
- Customizable chat bubble colors
- Control over inactivity and closing behavior
- Background image support
- Initial greeting and default responses
- Placeholder for user input
- Easy integration into Flutter apps
Whether you're building a customer support app or just looking to add some interactivity to your application, ikChatBot can help you create a dynamic chatbot experience tailored to your needs.
Getting Started #
To use this package, add ikchatbot
to your pubspec.yaml
file:
dependencies:
ikchatbot: ^1.0.0
import 'package:flutter/material.dart';
import 'package:ikchatbot/ikChatBot.dart';
import 'keywords.dart';
final chatBotConfig = IkChatBotConfig(
userIcon: const Icon(Icons.person, color: Colors.white),
botIcon: const Icon(Icons.android, color: Colors.white),
botChatColor: const Color.fromARGB(255, 81, 80, 80),
closingTime: 5, // in minutes
delayResponse: 5, // in secods
userChatColor: Colors.blue,
waitingTime: 5, // in minutes
keywords: keywords,
responses: responses,
backgroundColor: Colors.white,
backgroundImageUrl: 'https://cdn.wallpapersafari.com/54/0/HluF7g.jpg',
initialGreeting: "👋 Hello! \nWelcome to IkBot\nHow can I assist you today?",
defaultResponse: "Sorry, I didn't understand your response.",
inactivityMessage: "Is there anything else you need help with?",
closingMessage: "This conversation will now close.",
inputHint: 'Send a message',
);
Create a class to hold your keywords and resoponse for the bot
final List<String> keywords = [
'who are you',
'what is flutter',
'fuck',
'sorry'
];
final List<String> responses = [
'I am a bot created by Iksoft Original, a proud Ghanaian',
'Flutter transforms the app development process. Build, test, and deploy beautiful mobile, web, desktop, and embedded apps from a single codebase.',
'You are such an idiot to tell me this. you dont have future. Look for Iksoft Original and seek for knowledge. here is his number +233550138086. call him you lazy deep shit',
'Good! i have forgiven you. dont do that again!'
];
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'ikChatBot Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: MyHomePage(chatBotConfig: chatBotConfig),
);
}
}
class MyHomePage extends StatefulWidget {
final IkChatBotConfig chatBotConfig;
const MyHomePage({Key? key, required this.chatBotConfig}) : super(key: key);
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
bool _chatIsOpened = false;
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
centerTitle: true,
title: const Text('ikChatBot Example'),
),
body: _chatIsOpened
? Center(
child: Text('Welcome to my app'),
) : IkChatBot(config: widget.chatBotConfig),
);
}
}
Additional information #
To find more information, check out the package documentation.
Contributions are welcome! If you'd like to contribute to this package, please submit issues or pull requests on GitHub.
If you encounter any issues or need support, feel free to file issues on GitHub or contact us at support@afrilen.com.
Our team will do their best to respond promptly to issues and inquiries.