appsflyer_helper_init 0.9.3
appsflyer_helper_init: ^0.9.3 copied to clipboard
A Flutter plugin with a splash/loading gate, AppsFlyer SDK initialization, conversion data awaiting, and an in-app WebView fallback.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:appsflyer_helper_init/appsflyer_helper_init.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
runApp(
AfHelperGate(
config: const AfHelperConfig(
baseAddress: 'https://your-server.com',
configKey: 'your-config-key',
imagePath: '/images/loading.jpg',
appsFlyerDevKey: 'YOUR_APPSFLYER_DEV_KEY',
appsFlyerAppId: 'YOUR_APPLE_APP_ID',
debugMode: true,
),
child: const MyApp(),
),
);
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Example App',
theme: ThemeData(
colorSchemeSeed: Colors.deepPurple,
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('Example App')),
body: const Center(
child: Text('App content here'),
),
);
}
}