audio_wave 0.0.1 audio_wave: ^0.0.1 copied to clipboard
Customizable bar graph(wave graph) with wave animation.
import 'package:audio_wave/audio_wave.dart';
import 'package:flutter/material.dart';
void main() {
runApp(MyStatelessApp());
}
class MyStatelessApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Stateless Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: StatelessWidgetDemo(),
);
}
}
class StatelessWidgetDemo extends StatelessWidget {
@override
Widget build(BuildContext context) {
return SafeArea(
child: Scaffold(
backgroundColor: Colors.teal,
body: Column(
children: [
Text('Audio Wave Examples'),
AudioWave(
bars: [
AudioWaveBar(height: 50),
],
)
],
),
),
);
}
}