Skip to content

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.

Notifications You must be signed in to change notification settings

trishna456/flutter-dice-roll

Repository files navigation

Dice Roller App

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.

Key Features

  • 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!

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published