Flutter SDK
Deferred deep linking and optional in-app link creation for Flutter apps.
Version: 0.3.5 · pub.dev/packages/flinku_sdk
Installation
yaml
dependencies:
flinku_sdk: ^0.3.5Configure
Use your publishable key (flk_pk_) in apps. Never embed your secret key (flk_live_). Configure Allowed Domains in project settings before createLink.
dart
void main() async {
WidgetsFlutterBinding.ensureInitialized();
Flinku.configure(
baseUrl: 'https://yourapp.flku.dev',
apiKey: 'flk_pk_...', // optional — required for createLink / createLinkInstant
);
runApp(MyApp());
}match()
dart
final link = await Flinku.match();
if (link != null && link.matched) {
// link.deepLink, link.params, link.slug
}createLink()
Requires a publishable API key and Allowed Domains for the destination URLs you create.
dart
final link = await Flinku.createLink(FlinkuLinkOptions(
title: 'Summer Campaign',
deepLink: 'yourapp://promo',
params: {'ref': 'instagram'},
));
print(link.shortUrl);