engagive_flutter_sdk 1.0.2
engagive_flutter_sdk: ^1.0.2 copied to clipboard
Native in-app support chat SDK for Engagive AppChat visitor messaging.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'config/example_app_config.dart';
import 'example_navigator.dart';
import 'screens/example_app_shell.dart';
import 'services/example_environment_store.dart';
import 'theme/example_host_theme.dart';
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
await ExampleEnvironmentStore.load();
runApp(const EngagiveExampleApp());
}
/// Host shell that embeds [engagive_flutter_sdk] the same way a product app would.
class EngagiveExampleApp extends StatelessWidget {
const EngagiveExampleApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
navigatorKey: exampleNavigatorKey,
title: ExampleAppConfig.appDisplayName,
theme: ExampleHostTheme.light(),
home: const ExampleAppShell(),
);
}
}