AIDocs Flutter View

This is a Flutter view for the docs.

Getting Started

Initialize the config

const chatwootHttpEndpoint = 'https://chatwoot.kongshumapi.net';
const chatwootWebsocketEndpoint = 'wss://chatwoot.kongshumapi.net/cable';

_chatwootProvider = ChatwootStoreProvider(
    apiEndpoint: chatwootWebsocketEndpoint,
);
_messageProvider = ChatwootMessageProvider(
    url: chatwootHttpEndpoint,
    inboxIdentifier: inboxIdentifier,
);

_authenticationProvider = ChatwootAuthenticationProvider(
    apiEndpoint: chatwootHttpEndpoint,
    name: 'DocsUser',
    userId: '20',
    inboxIdentifier: inboxIdentifier,
);

Initialize the widget

ChatPage(
    messageProvider: _messageProvider,
    authProvider: _authenticationProvider,
    storeProvider: _chatwootProvider,
    configs: {},
)