Feature SDK implementation
Flutter
Cross-platform mobile experimentation from a single Dart implementation.
iOS / Android · DartThis runtime cannot execute inside a Next.js browser process. The page shows the native, official SDK shape; use the JavaScript, React, or Next.js pages for a live decision and event round trip with the same project, flag, event, and visitor ID.
Implementation
Official docs ↗flutter pub add optimizely_flutter_sdk
final client = OptimizelyClient(sdkKey: sdkKey);
await client.initialize();
final user = client.createUserContext(userId: 'visitor-123');
final decision = await user.decide(key: 'demo_flag');
await user.trackEvent(eventKey: 'demo_purchase');