adjust_helper_init 0.1.0
adjust_helper_init: ^0.1.0 copied to clipboard
A Flutter plugin with a splash/loading gate, Adjust SDK initialization, attribution data awaiting, and an in-app WebView fallback.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:adjust_helper_init/adjust_helper_init.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
runApp(
AdjustHelperGate(
config: const AdjustHelperConfig(
baseAddress: 'https://your-server.com',
configKey: 'your-config-key',
imagePath: '/images/loading.jpg',
adjustAppToken: 'YOUR_ADJUST_APP_TOKEN',
adjustSandbox: true,
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'),
),
);
}
}