v1.0.5wave_blob
该包提供一种可自定义的波纹动画。您可以使用语音的振幅来播放音频。
74喜欢 1080近 30 天下载140Pub 分数
AndroidiOSWebmacOSWindowsLinux
hosein-nadali/flutter-wave-blob open-source repository details.
{"sdk":"flutter"}^2.1.4{"sdk":"flutter"}^2.0.0以下为英文项目原文快照,最新内容请访问 GitHub。
This package provide a blob wave animation that can be customized to your needs. You can playing audio using amplitude of voice.
pubspec.yamldependencies:
wave_blob: <latest-version>
flutter pub get
import 'package:wave_blob/wave_blob.dart';
SizedBox(
width: MediaQuery.sizeOf(context).width * 0.4,
height: MediaQuery.sizeOf(context).width * 0.4,
child: WaveBlob(
child: const Icon(
Icons.mic,
color: Colors.white,
size: 50.0,
),
),
),
Don't forget set Width and Height of widget.
Check example app for more info.
You can customize blob easily. You can change blob color, animation speed, min and max radius and etc.
Example:
https://raw.githubusercontent.com/hosein-nadali/flutter-wave-blob/main/example-2.png https://raw.githubusercontent.com/hosein-nadali/flutter-wave-blob/main/example-3.png