zendesk_classic 1.0.2 copy "zendesk_classic: ^1.0.2" to clipboard
zendesk_classic: ^1.0.2 copied to clipboard

A Zendesk plugin is a software extension that integrates with the Zendesk customer support platform, designed to enhance and customize its functionality.

example/lib/main.dart

import 'dart:async';

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:zendesk_classic/zendesk_classic.dart';

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

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

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

class _MyAppState extends State<MyApp> {
  String _platformVersion = 'Unknown';
  final _zendeskClassicPlugin = ZendeskClassic();
  @override
  void initState() {
    super.initState();
    initPlatformState();
  }

  // Platform messages are asynchronous, so we initialize in an async method.
  Future<void> initPlatformState() async {
    try {
      await _zendeskClassicPlugin.initZendeskChat('Your Zendesk Account Key',
          barTintColor: 0xFFFF0000,
          tintColor: 0xFFFFFFFF,
          backgroundColor: 0xFF000000,
          botName: 'CompanyName');
    } on PlatformException {
      _platformVersion = "Failed to get platform version";
    }
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: Text('Running on: $_platformVersion\n'),
        ),
      ),
    );
  }
}
3
likes
130
pub points
63%
popularity

Publisher

verified publisheravinashgotluru.me

A Zendesk plugin is a software extension that integrates with the Zendesk customer support platform, designed to enhance and customize its functionality.

Homepage

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on zendesk_classic