AsjadSiddiqui / music_visualizer_package

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

visualizer_example

A new Flutter project.

Getting Started

Show some ❤️ and star the repo to support the project

Screenshots

Example

import 'package:flutter/material.dart';
import 'package:music_visualizer/music_visualizer.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  final List<Color> colors = [
    Colors.red[900]!,
    Colors.green[900]!,
    Colors.blue[900]!,
    Colors.brown[900]!
  ];

  final List<int> duration = [900, 700, 600, 800, 500];

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Music Visualizer Example',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MusicVisualizer(
        barCount: 30,
        colors: colors,
        duration: duration,
      ),
    );
  }
}

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

About

License:MIT License


Languages

Language:Dart 60.2%Language:HTML 28.9%Language:Swift 7.8%Language:Kotlin 2.4%Language:Objective-C 0.7%