v0.1.1simple_ripple_animation
该包提供了一个易于设置和自定义的波纹动画小部件,且在您选择的任何颜色下都显得非常美观。
简单且可自定义的涟漪动画,适用于 Flutter 应用!
以下为英文项目原文快照,最新内容请访问 GitHub。
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.
![]() Mobile |
![]() Tablet |
![]() Desktop |
![]() Web |
Jemis Goti |
Furkan Arslan |
Thank you for using this package and keep supporting opensource community.
依赖清单 3 项
{"sdk":"flutter"}{"sdk":"flutter"}^0.0.2先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗