This Flutter app allows you to roll a dice at the press of a button. It utilizes Flutter best practices, including state management with setState
, and incorporates both stateless and stateful widgets. The app features a gradient background and dynamically updates the dice image based on random dice rolls.
- Stateless and Stateful Widgets: Efficiently manage UI and state.
- Random Dice Rolls: Uses Dart's
math
package for generating random numbers. - Responsive UI: Gradient background and centered dice roller for a pleasant user experience.
Check out the code to explore more about Flutter's widget tree and state management!