v0.1.0simple_ripple_animation
이 패키지는 설정하고 맞춤설정하기 쉬운 리플 애니메이션 위젯을 제공하며, 선택한 색상에 관계없이 아름답게 보입니다.
Flutter 앱용으로 간단하고 사용자 정의 가능한 리플 애니메이션!
{"sdk":"flutter"}{"sdk":"flutter"}^0.0.2아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
style: very good analysis License: MIT
This package provide ripple animation widget that can be customised to meet your needs. It's easy to set up and customize, and it looks beautiful in any color you choose.
This package support following parameter and methods.
RippleAnimationwidget provide follwoing parameter to config your ripple animation effect.
Parameter defined for RippleAnimation widget:
| Name | Type | Description |
|---|---|---|
| child | Widget | This child will be placed at center of the animation. |
| delay | Duration | This will be delay between two ripple wave. |
| minRadius | double | Minimum radius of the ripple wave. |
| maxRadius | double | Maximum radius of the ripple wave. |
| color | Color | Color of the animation. |
| ripplesCount | int | number of rippleCount in the wave. |
| duration | Duration | duration of the animation |
| repeat | bool | Provide true if you want to repeat animation |
Add dependencies to pubspec.yaml
Get the latest version in the 'Installing' tab on pub.dev
dependencies:
simple_ripple_animation: <latest-version>
Run pub get.
flutter pub get
Import package.
import 'package:simple_ripple_animation/simple_ripple_animation.dart';
Wrap Widget with RippleAnimation and assign needed parameter.
RippleAnimation(
child: CircleAvatar(
minRadius: 75,
maxRadius: 75,
backgroundImage: NetworkImage(Constants.avtarUrl),
),
color: Colors.deepOrange,
delay: const Duration(milliseconds: 300),
repeat: true,
minRadius: 75,
maxRadius: 140,
ripplesCount: 6,
duration: const Duration(milliseconds: 6 * 300),
)
TODO: Here is the few screenshot for the preview. This will be remove in new verison becuase pub.dev now support screenshot.
| https://jemisgoti.github.io/simple_ripple_animation/readme_assets/image1.png Mobile |
https://jemisgoti.github.io/simple_ripple_animation/readme_assets/tab.png Tablet |
| https://jemisgoti.github.io/simple_ripple_animation/readme_assets/desktop.png Desktop |
https://jemisgoti.github.io/simple_ripple_animation/readme_assets/web.png Web |
| https://avatars.githubusercontent.com/u/46031164 Jemis Goti |
https://avatars.githubusercontent.com/u/75033711 Furkan Arslan |
Thank you for using this package and keep supporting opensource community.