flutter_animations 0.0.1+10  flutter_animations: ^0.0.1+10 copied to clipboard
flutter_animations: ^0.0.1+10 copied to clipboard
easy for animations,When you do a lot of calculation, you need this animation. When you make a network error or finish downloading files, you also need this animation。
flutter_animations #
flutter动画,纯dart语言写的动画,让动画用起来更简单,每个效果都有例子共读者更好的使用。
动画集合 #

|   声音 |   音乐跳动 |   魔法 | 
|---|---|---|
|  破碎的红点 |  默认无效果页面 | 
配置pubspec.yaml #
 flutter_animations: ^*.*.*
 
flutter pub get 
import 'package:flutter_animations/flutter_animations.dart';
⚠️ 注意: 具体版本点我查询
示例 #
每个动画斗鱼简单的例子。
SoundWidget 声音 #
SoundWidget(
  color: Colors.green,
  lines: 4,
  lineWidth: 2,
  centerFill: true,
  stop: _isStop,
  soundDirection: SoundDirection.top,
)
Chakra 音乐跳动 #
Chakra()
Spinnies 魔法 #
Spinnies(duration: Duration(seconds: 6), blendMode: BlendMode.screen)
BrokenRedDot 破碎红心 #
BrokenRedDot(radius: 10),
FlashPage 闪光 #
FlashPage();
属性 #
/// 闪光 偏移量 x:横轴 [-1,1] y:纵轴[-1,1]
final Offset offset;
/// 闪光的颜色
final List<Color> colors;
/// 闪光步长,数组长度保持和[colors]一致
final List<double> steps;