Skip to content

A Flutter-based app that provides a virtual dice rolling experience. Users can generate random numbers, mimicking the roll of a physical die.

Notifications You must be signed in to change notification settings

rayyanazmi/Roll-The-Dice

Repository files navigation

Dice Rolling App

This is a simple Flutter app that simulates a dice roll. When the "Roll Dice" button is tapped, the dice image changes to display a random number between 1 and 6.

Features:

  • Simple and intuitive interface: The app has a clean and user-friendly design.
  • Random Dice Rolls: Each time the button is tapped, a new random number is generated between 1 and 6.
  • Quick and Responsive: Provides instant feedback on each roll.

How to Use:

  1. Tap the "Roll Dice" button.
  2. The dice will animate and display a random number.
  3. Repeat to generate new rolls.

Screenshots:

Screenshot 2024-10-30 203814

Description: The initial screen of the app with the "Roll Dice" button.

Screenshot 2024-10-30 204528

Description: The app screen after rolling the dice, displaying a random number.

Explanation:

The first screenshot shows the initial state of the app with the "Roll Dice" button. The second screenshot shows the app after the dice has been rolled, displaying a random number.

Implementation:

The app uses Flutter's state management and widget building concepts to create the dice rolling functionality. The dice image is updated using a setState call to trigger a rebuild of the widget with the new random number.

Code Structure:

The app is built using Flutter's state management to update the dice's value on each roll. The dice's appearance is handled using a combination of widgets and animations.

Future Improvements:

  • Multiple dice: Add support for rolling multiple dice simultaneously.

  • Customizable dice: Allow users to choose the number of sides on the dice.

  • Sound effects: Add sound effects for the dice roll and the landing of the number.

  • Theming: Implement a theming system to allow users to customize the app's appearance.

Feel free to contribute to this project! If you have any questions or suggestions, please feel free to reach out.

About

A Flutter-based app that provides a virtual dice rolling experience. Users can generate random numbers, mimicking the roll of a physical die.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published