This is just a simple Dice Rolling app built for the tutorial purpose
NOTE:
Its better to mention full path in Image asset like:
AssetImage('assets/images/dice-png-$rightDiceNumber.png')
otherwise if you metion like:
AssetImage('images/dice-png-$rightDiceNumber.png')
then this will work fine on browser but will cause error in emulator.
-
Flutter
-
Dart
This project is a starting point for a Flutter application.
To get a local copy up and running follow these simple steps
-
clone the repository
-
Running your Flutter app
Use the flutter run command to run your Flutter app on a connected device or simulator.
Open a terminal and change directories to the root of your app
Run the following command. Once the flutter tool is running,
if you change the app’s source code, you can hit r to hot-reload your application
$ cd myapp
$ flutter run
For help getting started with Flutter, view Flutter documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
Reference Links: https://api.flutter.dev/flutter/animation/Curves-class.html
https://pub.dev/packages/animate_do
Reference Link for image: https://www.cleanpng.com/png-shake-dice-three-dices-white-geometric-dice-254203/