0 purchases
wootricsdk flutter
Flutter Plugin for Wootric SDK #
This is an official Wootric SDK Wrapper for Flutter by InMoment.
Website
Official Documentation:
Example #
Import wootricsdk_flutter
Init the library with your credentials
WootricsdkFlutter.configure(
clientId: "<CLIENT_ID",
accountToken: "<ACCOUNT_TOKEN>",
);
copied to clipboard
Setup your survey properties
WootricsdkFlutter.setEndUserEmail('[email protected]');
WootricsdkFlutter.setEndUserExternalId('123456789');
WootricsdkFlutter.setEndUserProperties({
'App': 'My App'
});
copied to clipboard
Presenting Survey
WootricsdkFlutter.forceSurvey(true); // Only for test
WootricsdkFlutter.showSurvey();
copied to clipboard
Targeted Sampling
WootricsdkFlutter.showSurveyWithEvent("event_name");
copied to clipboard
Color Customization (iPhone & Smartphones only)
WootricsdkFlutter.setSliderColor("#FF0000");
WootricsdkFlutter.setSendButtonBackgroundColor("#FF0000");
WootricsdkFlutter.setThankYouButtonBackgroundColor("#FF0000");
WootricsdkFlutter.setSocialSharingColor("#FF0000");
copied to clipboard
Logging #
SDK Supports various types of logging,
WootricsdkFlutter.setLogLevelVerbose();
WootricsdkFlutter.setLogLevelError();
WootricsdkFlutter.setLogLevelNone();
copied to clipboard
showDisclaimer #
When disclaimerText, link and linkText are set, the survey will display the text and link at the bottom of the survey.
WootricsdkFlutter.showDisclaimer("Learn how we handle your feedback","https://example.com/terms-of-use","here");
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.