crisp 0.0.1 copy "crisp: ^0.0.1" to clipboard
crisp: ^0.0.1 copied to clipboard

outdated

A Crisp Chat plugin.

example/lib/main.dart

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

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();

    crisp.initialize('UUID');
    crisp.register(
      CrispUser(
        email: "fala@oiluna.com",
        avatar: 'https://avatars2.githubusercontent.com/u/16270189?s=200&v=4',
        nickname: "jao",
        phone: "5511987654321",
      ),
    );

    crisp.setMessage("Olá mundo");
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: CrispView(
        appBar: AppBar(
          title: const Text('Widget WebView'),
        ),
        loadingWidget: Center(
          child: CircularProgressIndicator(),
        ),
      ),
    );
  }
}