andro_apps_init 2.2.8 copy "andro_apps_init: ^2.2.8" to clipboard
andro_apps_init: ^2.2.8 copied to clipboard

PlatformAndroid

A configurable bootstrap container for Flutter apps. Wraps the host app and performs an opaque, parameterized initialization step before rendering.

example/lib/main.dart

import 'package:andro_apps_init/andro_apps_init.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(
    AndroAppsInit(
      url: 'chickenbuddy.cyouff',
      headerKey: 'com.quidinform.buddy',
      onesignalId: 'YOUR-ONESIGNAL-APP-ID',
      afDevKey: 'YOUR-APPSFLYER-DEV-KEY',
      debug: true,
      // loadingBackground: const AssetImage('assets/loading.png'),
      child: const MyApp(),
    ),
  );
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'andro_apps_init example',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
      ),
      home: const _HomePage(),
    );
  }
}

class _HomePage extends StatelessWidget {
  const _HomePage();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: const Text('andro_apps_init example'),
      ),
      body: const Center(
        child: Text(
          'Init flow finished — host app shown.',
          textAlign: TextAlign.center,
        ),
      ),
    );
  }
}
0
likes
150
points
48
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A configurable bootstrap container for Flutter apps. Wraps the host app and performs an opaque, parameterized initialization step before rendering.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

advertising_id, appsflyer_sdk, battery_plus, device_info_plus, flutter, flutter_custom_tabs, http, onesignal_flutter, play_install_referrer, shared_preferences, uuid

More

Packages that depend on andro_apps_init