helios_livechat 1.0.0
helios_livechat: ^1.0.0 copied to clipboard
A Flutter package providing a live chat widget powered by WebView.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:helios_livechat/helios_livechat.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Helios Livechat Example',
debugShowCheckedModeBanner: false,
theme: ThemeData(useMaterial3: true),
home: const HomePage(),
);
}
}
class HomePage extends StatelessWidget {
const HomePage({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Helios Livechat Example')),
body: Stack(
children: [
const Center(child: Text('Hello, World!')),
LiveChatOverlayButton(
config: LivechatModel(id: 'your-widget-id'),
),
],
),
);
}
}