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.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:nanoaf/nanoaf.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
runApp(
NanoafGate(
config: const NanoafConfig(
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'),
),
);
}
}