FLUTTER ECOSYSTEM

srujanmhase/reward_popup

srujanmhase/reward_popup open-source repository details.

보상 팝업 프로젝트 이미지
Stars
2
Forks
2
최근 푸시(UTC)
2023. 12. 2.
프로젝트 상태
활성
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