FLUTTER ECOSYSTEM

srujanmhase/reward_popup

srujanmhase/reward_popup open-source repository details.

報酬ポップアップ のプロジェクト画像
Stars
2
Forks
2
最終プッシュ(UTC)
2023/12/02
プロジェクト状態
公開中
Srujan Mhase GitHub avatar
GITHUB User

Srujan Mhase ↗

Web, Flutter dev; Work github account different

Mumbai
言語DartC++CMakeHTMLSwiftCJavaKotlinObjective-C

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 4 件
  • flutter{"sdk":"flutter"}
  • lottie^2.4.0
  • flutter_test開発用{"sdk":"flutter"}
  • flutter_lints開発用^2.0.0

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

README を開く / 閉じる

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

More examples in the example directory of the repository & example tab.

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

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

Contributors

https://github.com/srujanmhase.png
srujanmhase

https://github.com/bahadirarslan.png
bahadirarslan