chatwoot 0.0.7 copy "chatwoot: ^0.0.7" to clipboard
chatwoot: ^0.0.7 copied to clipboard

Platformweb

A flutter package for integrating Chatwoot customer management platform

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:chatwoot/chatwoot.dart';

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

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  final _chatwootPlugin = Chatwoot();

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

  Future<void> initChatwoot() async {
    await _chatwootPlugin.init(
      baseUrl: 'BASE_URL',
      token: 'TOKEN',
      settings: const ChatwootSettings(locale: 'en'),
    );
    await _chatwootPlugin
        .setUser(const ChatwootUser(identifier: 'identifier', email: 'email'));
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
      ),
    );
  }
}
1
likes
130
points
30
downloads

Publisher

unverified uploader

Weekly Downloads

A flutter package for integrating Chatwoot customer management platform

Documentation

API reference

License

MIT (license)

Dependencies

flutter, web

More

Packages that depend on chatwoot