This is a simple Flutter application that simulates a dice roll.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You need to have Flutter and Dart installed on your machine. You can download them from here.
- Clone the repository
git clone https://github.com/dotcomaki/diceapp
- Navigate to the project directory
cd diceapp
- Get the dependencies
flutter pub get
- Run the app
flutter run
The application simulates a dice roll. When you run the app, it displays a gradient container with two colors. The colors are defined in the GradientContainer
widget. The dice roll is simulated by generating a random number and displaying the corresponding dice image.
If you encounter any issues with loading assets, ensure that:
- The asset is properly declared in the
pubspec.yaml
file. - The asset is in the correct location.
- The asset's filename matches exactly with what you have in your code, including the case.
- If you've added new assets to your project, you might need to stop and restart your app for the new assets to be recognized.
- If the asset is not properly bundled with the app, try running
flutter clean
in your terminal to clean your build, then rebuild your app.