mercury_aichat_sdk 0.0.3 mercury_aichat_sdk: ^0.0.3 copied to clipboard
A flutter plugin that provides a chatbot feature that can be utilized in the form of GetXController and UseCase.
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:mercury_aichat_sdk_example/routest.dart';
import 'chatbot/chatbot_binding.dart';
import 'chatbot/chatbot_view.dart';
/// The application in this example uses the GetX package, allowing the injection process to be performed within the ChatbotBinding.
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return GetMaterialApp(
title: 'Mercury AI-Chat SDK Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
getPages: [
GetPage(
name: Routes.chatbot,
page: () => const ChatbotView(),
binding: ChatbotBinding(),
),
],
);
}
}