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

outdated

A plugin for helpcrunch

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_plugin_helpcrunch/helpcrunch.dart';

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

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

class _MyAppState extends State<MyApp> {

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: Column(
            children: [
              FlatButton(child: Text('initialize'), onPressed: () async {
                await HelpCrunch.initialize(
                    organization: 'organization',
                    appId: 0,
                    appSecret: "appSecret");
              },),
              FlatButton(child: Text('Logout'), onPressed: () async {
                await HelpCrunch.logout();
              },),
              FlatButton(child: Text('Show Chat Screen'), onPressed: () async {
                await HelpCrunch.showChatScreen();
              },)
            ],
          ),
        ),
      ),
    );
  }
}
2
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A plugin for helpcrunch

Homepage

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on helpcrunch_plugin