Skip to content

devs-group/flutter-crisp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flutter Crisp

pub package License: MIT Twitter: oilunabr

Connect with Crisp Chat, register a user to chat (or not) and render a chat widget.

Tested on Android and iOS.

Required setup for iOS

You need to setup setup the a key in iOS, as described at flutter_webview_plugin.

How to use

Initialize with:

crisp.initialize(
  websiteId: 'WEBSITE_ID',
  locale: 'pt-br',
);

Optionally register an user

crisp.register(
  CrispUser(
    email: "[email protected]",
    avatar: 'https://avatars2.githubusercontent.com/u/16270189?s=200&v=4',
    nickname: "João Cardoso",
    phone: "5511987654321",
  ),
);

Set a initial message

crisp.setMessage("Hello world - initial message");

Pretty straightforward:

  @override
  void initState() {
    super.initState();

    crisp.initialize(
      websiteId: 'WEBSITE_ID',
      locale: 'pt-br',
    );

    crisp.register(
      CrispUser(
        email: "[email protected]",
        avatar: 'https://avatars2.githubusercontent.com/u/16270189?s=200&v=4',
        nickname: "João Cardoso",
        phone: "5511987654321",
      ),
    );

    crisp.setMessage("Hello world - initial message");
  }

About

Flutter plugin for Crisp Chat

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 46.0%
  • Ruby 28.4%
  • Kotlin 15.4%
  • Swift 5.9%
  • Objective-C 4.3%