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.
- 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
audioplayerspackage. - Simple UI: Clean and minimalistic design with a black background and vibrant keys.
- Each key is represented by a
TextButtonwidget, styled with a specific color and linked to a sound file. - The
playSoundfunction is used to play audio when a key is tapped. It utilizes theAudioPlayerclass from theaudioplayerspackage. - The
buildKeymethod dynamically creates keys with the required color and sound mapping, making the code reusable and scalable.