nanoaf 0.0.1 copy "nanoaf: ^0.0.1" to clipboard
nanoaf: ^0.0.1 copied to clipboard

PlatformiOS

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'),
      ),
    );
  }
}
0
likes
130
points
74
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for device compatibility gating with remote server checks, AppsFlyer integration, loading screens, and in-app browser redirects.

Documentation

API reference

License

MIT (license)

Dependencies

appsflyer_sdk, ffi, flutter, http, plugin_platform_interface, shared_preferences, url_launcher, uuid

More

Packages that depend on nanoaf

Packages that implement nanoaf