resubscribe_flutter_sdk 1.0.12 copy "resubscribe_flutter_sdk: ^1.0.12" to clipboard
resubscribe_flutter_sdk: ^1.0.12 copied to clipboard

The Flutter sdk for Resubscribe

Resubscribe Flutter SDK #

Flutter SDK for Resubscribe.

Installation #

https://pub.dev/packages/resubscribe_flutter_sdk

Usage #

Import the Resubscribe package.

import 'package:resubscribe_flutter_sdk/resubscribe_flutter_sdk.dart';

Call the Resubscribe package:

ResubscribeSDK.openWithConsent(
  context,
  aiType: '{{aiType}}', // Replace with the AI type
  userId: '{{userid}}', // Replace with the user ID
  slug: '{{slug}}', // Replace with your slug
  apiKey: '{{apiKey}}', // Replace with your API key
  // debugMode: true,
  // onClose: () {
  //   debugPrint('onClose');
  // },
);

Android #

Make sure your device has the following permissions:

<uses-permission android:name="android.permission.INTERNET" />

Customization #

The text on the consent popup is already customized to the AI type you choose.

However, if you want to override these values, then you can pass in the consentOptions to the ResubscribeSDK.

ResubscribeSDK.openWithConsent(
  // ...
  consentOptions: const ResubscribeConsentOptions(
    acceptText: 'Let\'s chat!',
    declineText: 'Not right now',
    titleText: 'CUSTOM TITLE',
    descriptionText: 'CUSTOM CONTENT',
  ),
  // ...
)

Dialog modals

The dialogs are instances of Flutter's AlertDialog. They can be customized via ThemeData.

0
likes
120
points
102
downloads

Publisher

unverified uploader

Weekly Downloads

The Flutter sdk for Resubscribe

Repository (GitHub)
View/report issues

Topics

#user-interviews #user-research #feedback

Documentation

API reference

License

Unlicense (license)

Dependencies

flutter, http, webview_flutter

More

Packages that depend on resubscribe_flutter_sdk