Skip to content

A simple piano application built using Flutter, allowing users to play piano notes on a virtual keyboard.

Notifications You must be signed in to change notification settings

SayvIlahsiav/piano_app

Repository files navigation

Piano App

A simple piano application built using Flutter, allowing users to play piano notes on a virtual keyboard.

Features

  • Virtual piano with white and black keys.
  • Responsive design for landscape orientation.
  • Audio playback for each piano key.

Screens

  • Splash Screen: Displays a fade-in "Simple Piano" text before navigating to the home screen.
  • Home Screen: Contains the piano keys arranged as a traditional keyboard.

Getting Started

Prerequisites

Installation

  1. Clone the repository:
    git clone https://github.com/SayvIlahsiav/piano_app.git
  2. Navigate to the project directory:
    cd piano_app
  3. Install dependencies:
    flutter pub get
  4. Run the app:
    flutter run

Code Overview

Main Components

  • main.dart: Sets up the app, enforcing landscape orientation and initializing the app with a splash screen.
  • splash_screen.dart: Displays a splash screen with a fade-in animation and transitions to the home screen.
  • home_screen.dart: Builds the main piano interface with white and black keys.
  • piano_key.dart: Defines individual piano keys, handling the appearance and sound playback.

Audio Handling

  • Uses the audioplayers package to play sound files (.ogg format) stored in the assets/sounds directory.

Contributing

Contributions are welcome! Please open an issue or submit a pull request with improvements or bug fixes.

About

A simple piano application built using Flutter, allowing users to play piano notes on a virtual keyboard.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published