Install the Flutter SDK

Add the Revenipe Flutter SDK to your Flutter app and prepare it for configuration.

The Revenipe Flutter SDK lets your app communicate with Revenipe.

Use it to log in customers, fetch products, start purchase flows, check entitlements, and track usage.

Before you start

Before installing the SDK, make sure you have:

  • a Flutter app

  • a Revenipe account

  • a Revenipe app

  • your Revenipe app key

  • at least one configured product if you want to test purchases

Step 1: Add the package

Add the Revenipe Flutter SDK to your Flutter project.

dependencies:
  revenipe_flutter: ^0.0.1

Step 2: Configure Revenipe

Configure the SDK with your Revenipe app key before using other SDK methods.

Example
await Revenipe.configure( appKey: 'your_app_key', );

Use the app key from the Revenipe dashboard. Make sure you use the correct key for your environment.

Basic example

A minimal setup can look like this:

Example
import 'package:revenipe_flutter/revenipe_flutter.dart'; Future<void> setupRevenipe() async { await Revenipe.configure( appKey: 'your_app_key', ); await Revenipe.instance.login('customer_123'); }

Important

Do not expose secret provider keys in your Flutter app.

Your Flutter app should only use the Revenipe app key. Stripe secret keys, RevenueCat private keys, webhook secrets, and other backend credentials must never be shipped inside a client app.

Next steps

After installing and configuring the SDK, continue with customer login, fetching products, starting purchases, and checking entitlements.