intercom_flutter 2.2.0
intercom_flutter: ^2.2.0 copied to clipboard
Flutter plugin for Intercom integration. Provides in-app messaging and help-center Intercom services
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:intercom_flutter/intercom_flutter.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Intercom.initialize(
'appId',
androidApiKey: 'androidApiKey',
iosApiKey: 'iosApiKey',
);
runApp(SampleApp());
}
class SampleApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Intercom example app'),
),
body: Center(
child: FlatButton(
onPressed: () {
Intercom.displayMessenger();
},
child: Text('Show messenger'),
),
),
),
);
}
}