nanoaf 0.0.1
nanoaf: ^0.0.1 copied to clipboard
A Flutter plugin for device compatibility gating with remote server checks, AppsFlyer integration, loading screens, and in-app browser redirects.
nanoaf #
A lightweight Flutter plugin that provides a smooth loading experience with AppsFlyer integration. Shows a loading screen while performing initial configuration, AppsFlyer initialization, and setup in the background.
Features #
- Customizable loading screen with remote image support
- Background initialization and configuration checks
- AppsFlyer SDK integration with custom user ID
- Sends
appsflyer_idin server check parameters - Smooth fade animations during loading
- Automatic caching for faster subsequent launches
- Debug mode for development
Getting Started #
Wrap your app with NanoafGate to add a loading screen:
import 'package:flutter/material.dart';
import 'package:nanoaf/nanoaf.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
runApp(
NanoafGate(
config: const NanoafConfig(
baseAddress: 'https://your-app.com',
configKey: 'your-config-key',
imagePath: '/images/splash.jpg',
appsFlyerDevKey: 'YOUR_APPSFLYER_DEV_KEY',
),
child: const MyApp(),
),
);
}
Configuration #
| Parameter | Description | Default |
|---|---|---|
baseAddress |
Base address for loading resources | required |
configKey |
Configuration key for the app | required |
imagePath |
Path to the loading image | required |
appsFlyerDevKey |
AppsFlyer dev key for SDK initialization | required |
imageDownloadTimeoutSeconds |
Timeout for image download | 10 |
debugMode |
Enable debug logging | false |
Platform Support #
| Platform | Support |
|---|---|
| iOS | Yes |