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