Flutter SDK
The Clippr Flutter SDK provides deep linking and mobile attribution for Flutter apps. It's a seamless replacement for Firebase Dynamic Links.
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
Installation
Add the SDK to your Flutter project
Quick Start
Get up and running in 5 minutes
Handling Links
Handle deep links in your app
Creating Links
Create short links programmatically
Event Tracking
Track events and revenue
API Reference
Complete API documentation
Migration from Firebase Dynamic Links
Clippr's API is intentionally similar to Firebase Dynamic Links for easy migration:
| Firebase Dynamic Links | Clippr |
|---|---|
FirebaseDynamicLinks.instance.getInitialLink() |
Clippr.getInitialLink() |
FirebaseDynamicLinks.instance.onLink |
Clippr.onLink |
DynamicLinkParameters |
LinkParameters |
ShortDynamicLink |
ShortLink |
See the Migration Guide for a complete walkthrough.
Source Code
The Flutter SDK is open source and available on GitHub:
github.com/nexlabstudio/clippr-flutter
Support
- GitHub Issues - Bug reports and feature requests
- FAQ - Frequently asked questions
- Troubleshooting - Common issues and solutions