optimizely_dart 0.1.8 copy "optimizely_dart: ^0.1.8" to clipboard
optimizely_dart: ^0.1.8 copied to clipboard

Flutter plugin for Optimizely native SDKs. Check feature flags and feature variables from your Optimizely project.

optimizely_dart Flutter 2.10.0 #

Flutter/Dart plugin for Optimizely native SDKs,

Getting Started #

Currently Optimizely does not offer a dedicated flutter SDK. This flutter plugin is bridging the gap between a flutter application and the native optimizely FULL STACK SDKs for Android and iOS.

Usage #

You need to init and set up user before using any functions

functions supported: isFeatureEnabled getAllFeatureVariables. getAllEnabledFeatures. activategetVariable. getVariable. trackEvent.

import 'package:optimizely_dart/optimizely_dart.dart';
await OptimizelyPlugin.initOptimizelyManager('your_optimizely_sdk_key');
...
  unawaited(OptimizelyPlugin().setUser(_personManager.person?.id, {'isLoggedIn':true}));
...
bool featureEnabled = await OptimizelyPlugin.isFeatureEnabled('your_flag', 'some_user@xyz.com');

 var variation = await OptimizelyPlugin().getVariation('your_flag', 'some_user@xyz.com',{});

await OptimizelyPlugin().trackEvent('name', 'some_user@xyz.com',{});

Installation #

Add optimizely_dart as a dependency in your project's pubspec.yaml

dependencies:
  optimizely_dart: ^0.1.0

Then run flutter pub get in your project directory

Note: The plugin is open source with contribution form HOMEX

Thanks: This plugin is derived from optimizely_plugin repo

4
likes
150
points
25
downloads

Publisher

verified publisherhomex.com

Weekly Downloads

Flutter plugin for Optimizely native SDKs. Check feature flags and feature variables from your Optimizely project.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on optimizely_dart