For the complete documentation index, see llms.txt. This page is also available as Markdown.

WebView Flutter

LiveCaller Chat Widget Integration for Flutter

This guide explains how to embed the LiveCaller chat widget into a Flutter app using the webview_flutter package.


1. Prerequisites

  • Flutter SDK (Version 3.x recommended)

  • webview_flutter package installed

Add the dependency to the pubspec.yaml file:

dependencies:
  flutter:
    sdk: flutter
  webview_flutter: ^4.4.2

Run the command:

flutter pub get

2. Main Entry Point

import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'LiveCaller Demo',
      theme: ThemeData(primarySwatch: Colors.blue, useMaterial3: true),
      home: const HomeScreen(),
    );
  }
}

3. Main Screen


4. Chat Screen with WebView

5. LiveCaller HTML Widget


Last updated