In this project, using Flutter and Dart to create a Dice Rolling App with a simple game.
-
Display the score of each dice roll in this round (display "--" if not completed), and show how many dice have been rolled in the current five opportunities, along with the current total score (for example, Your score: 8/20).
-
A progress bar is displayed to track the distance to the 20-points goal.
-
Modify the dice roll button to display "Play again" at the end of each round to start the next round.
-
Upon completion (score >= 20), the background will change to a green gradient, and a congratulations message will be displayed (e.g., 'You win').
-
Conversely, if not completed (score < 20), the background will change to a red gradient, and a failure message will be displayed (e.g., 'You lose').
A few introductory tutorials designed to help learn layout: