ai_chatbot_wrapper 0.0.3
ai_chatbot_wrapper: ^0.0.3 copied to clipboard
A Flutter package for integrating AI chatbots with OpenAI or mock responses.
import 'package:flutter/material.dart';
import 'package:ai_chatbot_wrapper/ai_chatbot_wrapper.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: Text("ChatBot Example")),
body: ChatBotView(
sendMessage: OpenAIService(apiKey: "your-api-key").sendMessage,
),
),
);
}
}