Skip to content

aiseukeurim/xylophone_flutter

Repository files navigation

Xylophone App

Screen_Recording_20241213_194632.mp4

A simple Flutter application that plays musical notes like a xylophone when you tap on colored keys. This app demonstrates the use of Flutter's widget system and the audioplayers package to create an interactive and engaging user interface.

Features

  • Interactive Keys: A vertical stack of colored keys, each corresponding to a musical note.
  • Sound Playback: Plays a unique sound for each key press using the audioplayers package.
  • Simple UI: Clean and minimalistic design with a black background and vibrant keys.

How It Works

  • Each key is represented by a TextButton widget, styled with a specific color and linked to a sound file.
  • The playSound function is used to play audio when a key is tapped. It utilizes the AudioPlayer class from the audioplayers package.
  • The buildKey method dynamically creates keys with the required color and sound mapping, making the code reusable and scalable.

About

A fun and interactive Flutter app that allows users to play musical notes by tapping on colorful keys. Each key produces a unique sound, mimicking the functionality of a xylophone. This app is built using Flutter's widget system and integrates the audioplayers package for seamless audio playback.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors