This is an official Wootric SDK Wrapper for Flutter by InMoment.
- Import wootricsdk_flutter
- Init the library with your credentials
WootricsdkFlutter.configure(
clientId: "<CLIENT_ID",
accountToken: "<ACCOUNT_TOKEN>",
);
- Setup your survey properties
WootricsdkFlutter.setEndUserEmail('[email protected]');
WootricsdkFlutter.setEndUserExternalId('123456789');
WootricsdkFlutter.setEndUserProperties({
'App': 'My App'
});
- Presenting Survey
WootricsdkFlutter.forceSurvey(true); // Only for test
WootricsdkFlutter.showSurvey();
- Targeted Sampling
WootricsdkFlutter.showSurveyWithEvent("event_name");
- Color Customization (iPhone & Smartphones only)
WootricsdkFlutter.setSliderColor("#FF0000");
WootricsdkFlutter.setSendButtonBackgroundColor("#FF0000");
WootricsdkFlutter.setThankYouButtonBackgroundColor("#FF0000");
WootricsdkFlutter.setSocialSharingColor("#FF0000");
SDK Supports various types of logging,
WootricsdkFlutter.setLogLevelVerbose();
WootricsdkFlutter.setLogLevelError();
WootricsdkFlutter.setLogLevelNone();
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");