flutter_live_support 1.0.0-alpha.0 copy "flutter_live_support: ^1.0.0-alpha.0" to clipboard
flutter_live_support: ^1.0.0-alpha.0 copied to clipboard

outdated

Flutter package to implement a firestore chat between customer and product support. This is a forked project from https://github.com/hwr12/flutter_live_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_support_chat/flutter_support_chat.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_fb_news 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
0
points
0
downloads

Publisher

verified publisherhyeon.xyz

Weekly Downloads

Flutter package to implement a firestore chat between customer and product support. This is a forked project from https://github.com/hwr12/flutter_live_support .

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

cloud_firestore, firebase_core, flutter, flutter_support_chat

More

Packages that depend on flutter_live_support