cxgenie 2.0.8 copy "cxgenie: ^2.0.8" to clipboard
cxgenie: ^2.0.8 copied to clipboard

outdated

The cxgenie Flutter Package seamlessly integrates https://cxgenie.ai cutting-edge Conversational AI and NLP capabilities into Flutter apps.

example/lib/main.dart

import 'package:cxgenie/cxgenie.dart';
import 'package:cxgenie/enums/language.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const HomeScreen(),
    );
  }
}

class HomeScreen extends StatelessWidget {
  const HomeScreen({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
          title: const Text('Chat'),
          backgroundColor: const Color(0xFF364de7),
          elevation: 0),
      body: const Center(
          child: CXGenie(
        botId: 'e1caaec4-b56c-4b7d-9cd7-86b3df5c77af',
        // botId: 'e7778fe2-8dd2-4ea9-ad3c-033c5670017a', // Have ticket add-on
        // botId: '5b342fb6-0fff-4baf-a74d-d65433dd6946', // Don't have ticket add-on
        userToken: '0ec9f333eabacc46c3b049864272781c614dc87c',
        language: LanguageOptions.vi,
      )),
    );
  }
}
7
likes
0
points
422
downloads

Publisher

verified publishercxgenie.ai

Weekly Downloads

The cxgenie Flutter Package seamlessly integrates https://cxgenie.ai cutting-edge Conversational AI and NLP capabilities into Flutter apps.

Homepage

License

unknown (license)

Dependencies

flutter, flutter_custom_tab_bar, flutter_form_builder, flutter_svg, form_builder_validators, http, image_picker, intl, json_annotation, modal_bottom_sheet, provider, socket_io_client

More

Packages that depend on cxgenie