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/flutterFuture<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 silinirFeralin.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/42final 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
| Capability | Status |
|---|---|
| Event sending | Supported |
| Batch sending | Partial |
| Consent handling | Supported |
| Identity | Partial |
| Attribution | Partial |
| Deep links | Partial |
| Revenue | Partial |
| Error capture | Partial |
| Session replay | Not applicable |
| Tracing | Planned |
Verification chain
| Link | Status |
|---|---|
| Source | Passed |
| Build | Passed |
| Test | Passed |
| Registry publication | Passed |
| Clean install | Passed |
| Event receipt | Passed |
| Documentation | Passed |
| Super Admin proof | Not 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.