paywall_ui 0.0.1 copy "paywall_ui: ^0.0.1" to clipboard
paywall_ui: ^0.0.1 copied to clipboard

This package was created to facilitate the development of new paywalls.

This package was created to facilitate the development of new paywalls

Features #

Currently the plugin has only 2 layouts. - OTP for an OTP preferred payment option. - Multiple Options, ideal for 2 or 3 subscription offers or OTP Subscription. -- Multiple Options has vertical layout (default) and horizontal layout.

Getting started #

Requisitos padrões

Usage #

Include short and useful examples for package users.

on example path: lib/app/modules/paywall/view.dart

    Container(
        child: PaywallUi().oneTimePayment(
            features: ['🔓 feature1', '⌚️ feature2'],
            paywallStyle: OTPPaywallStyle(
                featuresSize: 18,
            ),
            paywallSettings: PaywallSettings(
                localizedPrice: "\$ 4.99",
                onPressedBackButton: () => Get.back(),
                onPressedPurchaseButton: () async {
                    /// to make purchase on cta
                    /// call.purchase(product);
                    await Future.delayed(const Duration(seconds: 3));
                },
                onPressedRestoreButton: () async => await Future.delayed(const Duration(seconds: 3)),
                onPressedPrivacyButton: () => Get.defaultDialog(title: "Privacy Policy", middleText: "Privacy Policy Link"),
                onPressedTermsButton: () => Get.defaultDialog(title: "Terms of Use", middleText: "Terms of Use Link"),
            ),
        ),
    )

Additional information #

You can build with this package by opening a pr on github.

paywall_ui #

3
likes
70
points
26
downloads

Publisher

unverified uploader

Weekly Downloads

This package was created to facilitate the development of new paywalls.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

animate_do, flutter, get, iconsax

More

Packages that depend on paywall_ui