Flutter – Install AdaptyUI SDK

Begin configuring the Adapty paywall builder by installing the AdaptyUI SDK. Note that the AdaptyUI SDK is necessary only if you intend to use the paywalls created with the Paywall Builder.

Add AdaptyUI to your pubspec.yaml file:

  adapty_ui_flutter: ^2.1.1

And then run:

flutter pub get

After that, you can import Adapty SDK in your application like this:

import 'package:adapty_ui_flutter/adapty_ui_flutter.dart';

Please consult the compatibility table below to choose the correct pair of Adapty SDK and AdaptyUI SDK.

Adapty SDK versionAdaptyUI SDK version
2.10.0 or later2.1.1