v0.0.7
reward_popup
선물과 컨페티 애니메이션을 포함한 매력적인 애니메이션 팝업을 쉽게 구현할 수 있는 플러터 패키지입니다.
29좋아요 10830일 다운로드130Pub 점수
AndroidiOSWebmacOSWindowsLinux
srujanmhase/reward_popup open-source repository details.
{"sdk":"flutter"}^2.4.0{"sdk":"flutter"}^2.0.0아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
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.
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!