lander_flutter 0.3.0 copy "lander_flutter: ^0.3.0" to clipboard
lander_flutter: ^0.3.0 copied to clipboard

Deep linking without the fuss: receive, resolve and create Lander links, and report opens and conversions from Flutter apps.

example/lib/main.dart

import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:lander_flutter/lander_flutter.dart';

import 'app.dart';

/// Seeded local test key from supabase/seed.sql. Publishable keys are safe to
/// ship in apps.
const landerApiKey = 'pk_test_DemoPublishableKey000000000000';

/// The local API from `pnpm dev`. The Android emulator reaches the host at
/// 10.0.2.2; the iOS simulator shares the host's localhost. Override with
/// `--dart-define=LANDER_BASE_URL=https://api.golander.link`.
String get landerBaseUrl {
  const override = String.fromEnvironment('LANDER_BASE_URL');
  if (override.isNotEmpty) return override;
  return defaultTargetPlatform == TargetPlatform.android ? 'http://10.0.2.2:8787' : 'http://localhost:8787';
}

Future<void> main() async {
  // Returns quickly: the network init runs in the background.
  final started = Lander.initialize(apiKey: landerApiKey, baseUrl: landerBaseUrl, enableLogging: kDebugMode);
  runApp(const ShopApp());
  await started;
  // The install ID is known once initialize completes.
  installId.value = Lander.installId;
}
0
likes
140
points
--
downloads

Documentation

Documentation
API reference

Publisher

verified publishergolander.link

Deep linking without the fuss: receive, resolve and create Lander links, and report opens and conversions from Flutter apps.

Homepage
Repository (GitHub)
View/report issues

Topics

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

License

MIT (license)

Dependencies

flutter, http, meta, uuid

More

Packages that depend on lander_flutter

Packages that implement lander_flutter