appcarry_sdk 1.1.0 copy "appcarry_sdk: ^1.1.0" to clipboard
appcarry_sdk: ^1.1.0 copied to clipboard

A Flutter plugin for AppCarry SDK. Supports iOS and Android.

example/lib/main.dart

import 'package:appcarry_sdk/appcarry_sdk.dart';
import 'package:flutter/material.dart';
import 'dart:async';

void main() {
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  String _platformVersion = 'Unknown';

  @override
  void initState() {
    super.initState();
    initAppcarrySdk();
  }

  Future<void> initAppcarrySdk() async {
    Map acOptions = { "acDevKey": "acDevKey",
      "acAppId": "appId",
      "isDebug": true};

    AppCarrySdk appCarrySdk = AppCarrySdk(acOptions);
    appCarrySdk.initSdk(
        registerConversionDataCallback: true,
        registerOnAppOpenAttributionCallback: true);
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: Text('Running on: $_platformVersion\n'),
        ),
      ),
    );
  }
}
0
likes
40
pub points
0%
popularity

Publisher

verified publisherappcarry.com

A Flutter plugin for AppCarry SDK. Supports iOS and Android.

Homepage

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on appcarry_sdk