ai_chatbot_wrapper 0.0.3 copy "ai_chatbot_wrapper: ^0.0.3" to clipboard
ai_chatbot_wrapper: ^0.0.3 copied to clipboard

A Flutter package for integrating AI chatbots with OpenAI or mock responses.

example/main.dart

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,
        ),
      ),
    );
  }
}
1
likes
150
points
44
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for integrating AI chatbots with OpenAI or mock responses.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, http

More

Packages that depend on ai_chatbot_wrapper