A Flutter plugin for Varioqub. Varioqub is an AB tool that works for Android and iOS.
The plugin is available for Android and iOS and includes native Varioqub SDKs:
You can found documentation here.
In your flutter project add the following dependency:
dependencies:
varioqub_plugin: ^0.1.0
// init varioqub
Varioqub.initVarioqubWithAppMetricaAdapter(VarioqubSettings("<YOUR_CLIENT_ID>"));
// fetch config with flags
Varioqub.fetchConfig().then((value) {
if (value.status == 0) {
// activate config
Varioqub.activateConfig();
} else {
log("Error while fetching config - ${value.error}");
}
});
// use flag from config
Varioqub.getString("key", "defaultValue");
This plugin uses Pigeon to generate interfaces for communication between Flutter and host platform.