Skip to main content

strait_sdk 0.10.0 copy "strait_sdk: ^0.10.0" to clipboard
strait_sdk: ^0.10.0 copied to clipboard

Deep linking for Dart and Flutter apps. Direct links (App Links, Universal Links, custom schemes) and deferred links that survive the install.

example/example.dart

// Minimal use: the deferred link on first launch. For the full client (`StraitLinks`,
// direct + deferred links, open reporting) see the README.
import 'package:strait_sdk/strait_sdk.dart';

Future<void> main() async {
  // First launch after install: ask for the deferred link (never throws).
  final result = await resolveDeferredLink(
    publishableKey: 'st_pub_live_…', // Dashboard → Get started; never the secret key
    endpoint: 'https://<your-handle>.strait.link',
    platform: 'android',
    device: DeviceFields(
      screenWidth: portraitScreenWidth(392.7, 872.7),
      pixelRatio: 2.75,
      language: 'en',
      timezone: 'Asia/Kolkata',
    ),
  );
  if (result.matched && result.longUrl != null) print('route to ${result.longUrl}');
}
0
likes
0
points
702
downloads

Documentation

Documentation

Publisher

verified publisherstraitlink.in

Weekly Downloads

Deep linking for Dart and Flutter apps. Direct links (App Links, Universal Links, custom schemes) and deferred links that survive the install.

Homepage
Repository (GitHub)
View/report issues

Topics

#deep-linking #deferred-deep-linking #attribution #universal-links #app-links

License

unknown (license)

Dependencies

http

More

Packages that depend on strait_sdk