Skip to content
Feralin

Developers

Dart / Flutter: quickstart

Install and first-use steps for sending events to Feralin with Dart / Flutter. Code samples come from the SDK's own README and statuses from the capability record.

Install

feralin_flutter 0.3.0 is published on pub.dev; install it with your package manager using the command below.

dependencies:
  feralin_flutter:
    path: ../sdks/flutter
Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Feralin.initialize(const FeralinConfig(
    projectKey: 'pk_live_...', // yalnız x-feralin-project-key başlığında taşınır
    collectUrl: 'https://collect.example.com',
    // consent verilmezse izin bekleniyor sayılır
  ));
  runApp(const MyApp());
}

First use

Feralin.track('purchase', {'amount': 10.5});
Feralin.screen('home');
Feralin.identify('kullanici_42'); // PII vermeyin
final result = await Feralin.flush(); // result.status: HTTP durumu, 0: istek yok veya ağ hatası
await Feralin.reset(); // çıkış: kimlikler yenilenir, kuyruk ve global özellikler silinir
Feralin.setGlobalProperties({'app_release': '2.4.0'}); // fr_ ile başlamayan her olaya eklenir
Feralin.setUserProperties({'plan': 'pro', 'seats': 12}); // fr_user_properties
Feralin.group('acme-team', {'plan': 'team'}); // fr_group, group_id + özellikler
Feralin.clearGlobalProperties();
final open = await Feralin.handleShortLink(uri); // iOS'ta ya da autoCaptureDeepLinks: false iken
navigator.pushNamed(open.destination);           // ör. /urun/42
final link = await Feralin.consumeDeferredDeepLink();
if (link.status == DeferredDeepLinkStatus.delivered) router.go(link.path!);

Code samples are taken as they are from sdks/flutter/README.md; comments inside may be in Turkish. You create the project key in the dashboard.

Capabilities

Dart / Flutter capability status
CapabilityStatus
Event sendingSupported
Batch sendingPartial
Consent handlingSupported
IdentityPartial
AttributionPartial
Deep linksPartial
RevenuePartial
Error capturePartial
Session replayNot applicable
TracingPlanned

Verification chain

Dart / Flutter verification chain
LinkStatus
SourcePassed
BuildPassed
TestPassed
Registry publicationPassed
Clean installPassed
Event receiptPassed
DocumentationPassed
Super Admin proofNot started

Passed means local evidence: source, build and tests ran. Registry publication and Super Admin proof are separate links; the SDK is not called ready until each has passed.