mercury_aichat_sdk 0.0.3 copy "mercury_aichat_sdk: ^0.0.3" to clipboard
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.

example/lib/main.dart

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(),
        ),
      ],
    );
  }
}
2
likes
140
pub points
1%
popularity

Publisher

unverified uploader

A flutter plugin that provides a chatbot feature that can be utilized in the form of GetXController and UseCase.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

dio, flutter, flutter_secure_storage, get

More

Packages that depend on mercury_aichat_sdk