Flutter Crisp
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:
- Your website id (https://app.crisp.chat/website/%5BWEBISTE_ID%5D/inbox/);
- An optional locale.
crisp.initialize(
websiteId: 'WEBSITE_ID',
locale: 'pt-br',
);Optionally register an user
crisp.register(
CrispUser(
email: "example@provider.com",
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: "example@provider.com",
avatar: 'https://avatars2.githubusercontent.com/u/16270189?s=200&v=4',
nickname: "João Cardoso",
phone: "5511987654321",
),
);
crisp.setMessage("Hello world - initial message");
}
Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
