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

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 SafeArea(
        child: Center(
          child: Chat(
            botId: 'BOT_ID',
            // userToken: 'USER_TOKEN',
            language: LanguageOptions.vi,
          ),
        ),
      ),
    );
  }
}
5
likes
130
pub points
69%
popularity

Publisher

verified publishercxgenie.ai

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

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

chewie, flutter, flutter_form_builder, flutter_portal, flutter_svg, flutter_widget_from_html_core, form_builder_validators, http, image_picker, intl, json_annotation, linkify, logger, provider, socket_io_client, url_launcher, uuid, video_player

More

Packages that depend on cxgenie