flutter_live_support 1.0.0+2 copy "flutter_live_support: ^1.0.0+2" to clipboard
flutter_live_support: ^1.0.0+2 copied to clipboard

outdated

Flutter package to implement a firestore chat between customer and product support.

example/lib/main.dart

// Flutter imports:
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
// Package imports:
import 'package:flutter_live_support/flutter_live_support.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp();
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'flutter_support_chat example',
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text("flutter_live_support_example"),
        ),
        body: FlutterSupportChat(
          supporterID: [
            'cedtegapps.de@gmail.com',
          ],
          currentID: "planet12",
          firestoreInstance: FirebaseFirestore.instance,
          onNewCaseText: 'New Support Case',
          createCaseButtonText: "Create Support Case",
          writeMessageText: "Write a Message",
          senderColor: Colors.blue,
          recieverColor: Colors.grey,
        ));
  }
}
1
likes
80
points
0
downloads

Publisher

verified publisherhyeon.xyz

Weekly Downloads

Flutter package to implement a firestore chat between customer and product support.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

cloud_firestore, firebase_core, flutter

More

Packages that depend on flutter_live_support