adapty_ui_flutter 2.1.2 copy "adapty_ui_flutter: ^2.1.2" to clipboard
adapty_ui_flutter: ^2.1.2 copied to clipboard

Extension to the Adapty SDK that allows you to easily add purchase screens to your application.


Adapty UI

AdaptyUI is an open-source framework that is an extension to the Adapty SDK that allows you to easily add purchase screens to your application. It’s 100% open-source, native, and lightweight.

1. Fetching Paywalls & ViewConfiguration #

Paywall can be obtained in the way you are already familiar with:

import 'package:adapty_flutter/adapty_flutter.dart';

try {
  final paywall = await Adapty().getPaywall(id: paywallId);
} on AdaptyError catch (adaptyError) {
  // handle the error
} catch (e) {
  // handle the error
}

After fetching the paywall call the AdaptyUI.createPaywallView() method to assembly the view:

import 'package:adapty_ui_flutter/adapty_ui_flutter.dart';

try {
  final view = await AdaptyUI().createPaywallView(paywall: paywall, locale: 'en');
} on AdaptyError catch (e) {
  // handle the error
} catch (e) {
  // handle the error
}

2. Presenting Visual Paywalls #

In order to display the visual paywall on the device screen, you may just simply call .present() method of the view, obtained during the previous step:

try {
  await view.present();
} on AdaptyError catch (e) {
  // handle the error
} catch (e) {
  // handle the error
}

3. Full Documentation and Next Steps #

We recommend that you read the full documentation. If you are not familiar with Adapty, then start here.

Contributing #

  • Feel free to open an issue, we check all of them or drop us an email at support@adapty.io and tell us everything you want.
  • Want to suggest a feature? Just contact us or open an issue in the repo.

Like AdaptyUI? #

So do we! Feel free to star the repo ⭐️⭐️⭐️ and make our developers happy!

License #

AdaptyUI is available under the MIT license. Click here for details.


2
likes
130
pub points
85%
popularity

Publisher

verified publisheradapty.io

Extension to the Adapty SDK that allows you to easily add purchase screens to your application.

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

MIT (LICENSE)

Dependencies

adapty_flutter, flutter, meta

More

Packages that depend on adapty_ui_flutter