A simple Flutter app that displays a dice and allows users to roll it by tapping a button.
- Interactive dice rolling with random results (1-6)
- Visual dice images that update based on roll results
- Clean, minimal UI with styled button
- Flutter SDK installed
- Dart SDK (comes with Flutter)
flutter runAndroid APK:
flutter build apkiOS:
flutter build iosWeb:
flutter build web --base-href /build/web/Windows:
flutter build windowsmacOS:
flutter build macosLinux:
flutter build linuxTo test the web build locally:
- Build:
flutter build web --base-href /build/web/ - Install Live Server extension in VS Code
- Right-click
build/web/index.html→ "Open with Live Server"
After building, the web files are in build/web/. To deploy:
- Copy contents of
build/web/to your web server or GitHub Pages - For GitHub Pages: commit the
build/web/contents to agh-pagesbranch - Enable GitHub Pages in repository settings
lib/main.dart- App entry pointlib/my_container.dart- Main containerlib/dice_roller.dart- Main dice rolling widgetassets/images/- Dice image assetsbuild/web/- Web build output (afterflutter build web)