Flutter SDK

The Flutter integration of Clippr's deep linking and mobile attribution platform.

Features

  • Deep link handling for iOS and Android
  • Deferred deep linking (attribution after install)
  • Deterministic matching via Install Referrer (Android)
  • Probabilistic matching via device fingerprinting
  • Event and revenue tracking
  • Programmatic short link creation
  • Debug mode for development

Requirements

  • Flutter 3.10+
  • Dart 3.10+
  • iOS 13.0+
  • Android API 21+

Quick Start

dart
import 'package:clippr/clippr.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  // Initialize SDK
  await Clippr.initialize(apiKey: 'YOUR_API_KEY');

  runApp(MyApp());
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
    _initDeepLinks();
  }

  Future<void> _initDeepLinks() async {
    // Get the link that opened the app (direct or deferred)
    final link = await Clippr.getInitialLink();
    if (link != null) {
      _handleDeepLink(link);
    }

    // Listen for links while app is running
    Clippr.onLink = (link) {
      _handleDeepLink(link);
    };
  }

  void _handleDeepLink(ClipprLink link) {
    print('Path: ${link.path}');
    print('Campaign: ${link.attribution?.campaign}');
    // Navigate based on path
  }
}

Documentation

Source Code

The Flutter SDK is open source and available on GitHub:

github.com/nexlabstudio/clippr-flutter

Support