This is a dice roller app which i have created taking inspiration from one of my mentors repo.
Link:-https://github.com/S-ayanide/Flutter-DiceRoller
The basic app contained two dices which were rolled and were showing respective images each time the button was clicked.
I have added a sound to this such that whenever the button is clicked the sound will be played and dice will be rolled accordingly.
Also i have added some delay to the image loading due to which the images now take 1.5 seconds to load and display which was necessary to give user the feel of dice rolling and the numbered images being loaded accordingly.
Things which are done in the app involves:
- MaterialApp class/design.
- Scaffold Class.
- AppBar.
- Use of functions and variables.
- Stateless and Stateful widget.
- Sound on button click
- Use of timer to sync the sound and images
Built using
- Flutter
Videos
Watch the video with sound:- https://youtu.be/LWKhNenakSQ
Snaps
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.