reward_popup 0.0.5 copy "reward_popup: ^0.0.5" to clipboard
reward_popup: ^0.0.5 copied to clipboard

outdated

A flutter package to easily implement an attractive animated pop-up animation with gift and confetti animation.

Reward Pop-Up #

A flutter package to easily implement an attractive animated pop-up animation with gift and confetti animation. This package includes a custom non-opaque route, lottie animation and an animated mesh background.

Demo #

Video

Getting Started #

Simply import the package

import 'package:reward_pop_up/reward_pop_up.dart';

Add a reference to the showRewardPackage method

ElevatedButton(
              onPressed: () async {
                final answer = await showRewardPopup<String>(
                  context,
                  child: WillPopScope(
                    onWillPop: () {
                      Navigator.of(context).pop('ok');
                      return Future.value(true);
                    },
                    child: Positioned.fill(
                      child: InkWell(
                        onTap: () {
                          Navigator.of(context).pop(true);
                        },
                        child: Image.asset(
                          'assets/elephant.jpg',
                          fit: BoxFit.cover,
                        ),
                      ),
                    ),
                ),
            );
            print(answer);
        },
    child: const Text('Pop-up example one'),
),

*New: Customize the precursor animation by passing your own animation widget!

28
likes
0
points
28
downloads

Publisher

unverified uploader

Weekly Downloads

A flutter package to easily implement an attractive animated pop-up animation with gift and confetti animation.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, lottie

More

Packages that depend on reward_popup