A simple piano application built using Flutter, allowing users to play piano notes on a virtual keyboard.
- Virtual piano with white and black keys.
- Responsive design for landscape orientation.
- Audio playback for each piano key.
- 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.
- Flutter installed.
- An IDE like Android Studio or Visual Studio Code.
- Clone the repository:
git clone https://github.com/SayvIlahsiav/piano_app.git
- Navigate to the project directory:
cd piano_app
- Install dependencies:
flutter pub get
- Run the app:
flutter run
- 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.
- Uses the
audioplayers
package to play sound files (.ogg
format) stored in theassets/sounds
directory.
Contributions are welcome! Please open an issue or submit a pull request with improvements or bug fixes.