Starter code for the Dicee project in the Complete Flutter Bootcamp

Overview

App Brewery Banner

Dicee 🎲

Our Goal

The objective of this tutorial is to introduce you to the core programming concepts that will form the foundation of most of the apps you’ll build in the future. This app will teach you how to make apps with functionality using setState() inside Stateful Flutter widgets.

What you will create

We’re going to make a Las Vegas dice app. You can make the die roll at the press of a button. With this app in your pocket, you’ll be able to settle any score on the go!

Finished App

What you will learn

  • How to use Flutter stateless widgets to design the user interface.
  • How to use Flutter stateful widgets to update the user interface.
  • How to change the properties of various widgets.
  • How to use onPressed listeners to detect when buttons are pressed.
  • How to use setState to mark the widget tree as dirty and requiring update on the next render.
  • How to use Expanded to make widgets adapt to screen dimensions.
  • Understand and use string interpolation.
  • Learn about basic dart programming concepts such as data types and functions.
  • Code and use gesture controls.

This is a companion project to The App Brewery's Complete Flutter Development Bootcamp, check out the full course at www.appbrewery.co

End Banner

Comments
  • Can not build Solution. (Execution failed for task ':app:processDebugResources'.)

    Can not build Solution. (Execution failed for task ':app:processDebugResources'.)

    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':app:processDebugResources'.
    > Android resource linking failed
      Output:  D:\GitRepos\dicee-flutter\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:186: error: resource android:attr/fontVariationSettings not found.
      D:\GitRepos\dicee-flutter\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:187: error: resource android:attr/ttcIndex not found.
      error: failed linking references.
    
      Command: C:\Users\pierr\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\6c67b1f76e068f8f255090d62215eadf\aapt2-3.2.1-4818971-windows\aapt2.exe link -I\
              C:\Users\pierr\AppData\Local\Android\sdk\platforms\android-27\android.jar\
              --manifest\
              D:\GitRepos\dicee-flutter\build\app\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\
              -o\
              D:\GitRepos\dicee-flutter\build\app\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\
              -R\
              @D:\GitRepos\dicee-flutter\build\app\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\
              --auto-add-overlay\
              --java\
              D:\GitRepos\dicee-flutter\build\app\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\
              --custom-package\
              co.appbrewery.dicee\
              -0\
              apk\
              --output-text-symbols\
              D:\GitRepos\dicee-flutter\build\app\intermediates\symbols\debug\R.txt\
              --no-version-vectors
      Daemon:  AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
      Output:  C:\Users\pierr\.gradle\caches\transforms-1\files-1.1\support-compat-28.0.0.aar\806338c10ff58144c55b73f64695bab5\res\values\values.xml:89:5-125:25: AAPT: error: resource android:attr/fontVariationSettings not found.
    
      C:\Users\pierr\.gradle\caches\transforms-1\files-1.1\support-compat-28.0.0.aar\806338c10ff58144c55b73f64695bab5\res\values\values.xml:89:5-125:25: AAPT: error: resource android:attr/ttcIndex not found.
    
      error: failed linking references.
      Command: C:\Users\pierr\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\6c67b1f76e068f8f255090d62215eadf\aapt2-3.2.1-4818971-windows\aapt2.exe link -I\
              C:\Users\pierr\AppData\Local\Android\sdk\platforms\android-27\android.jar\
              --manifest\
              D:\GitRepos\dicee-flutter\build\app\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\
              -o\
              D:\GitRepos\dicee-flutter\build\app\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\
              -R\
              @D:\GitRepos\dicee-flutter\build\app\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\
              --auto-add-overlay\
              --java\
              D:\GitRepos\dicee-flutter\build\app\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\
              --custom-package\
              co.appbrewery.dicee\
              -0\
              apk\
              --output-text-symbols\
              D:\GitRepos\dicee-flutter\build\app\intermediates\symbols\debug\R.txt\
              --no-version-vectors
      Daemon:  AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    
    * Get more help at https://help.gradle.org
    
    BUILD FAILED in 4s
    Finished with error: Gradle task assembleDebug failed with exit code 1
    
    opened by xatazch 4
  • Outdated widget used.

    Outdated widget used.

    In the course, The instructor uses the "Flat Button" widget, which is no longer supported by flutter, Needs an update, You can use the alternate method as in my repository using "FloatingActionButton".

    opened by Digvijay-95 1
  • Android build failure

    Android build failure

    Following is the message printed

    Launching lib/main.dart on AOSP on IA Emulator in debug mode... [!] Your app isn't using AndroidX. To avoid potential build failures, you can quickly migrate your app by following the steps on https://goo.gl/CP92wY. Running Gradle task 'assembleDebug'...

    FAILURE: Build failed with an exception.

    opened by amandeep-wynk 1
  • use AndroidX with 29 API to prevent build failures

    use AndroidX with 29 API to prevent build failures

    Almost all face the problem after cloning the repo which is not using AndroidX and 27 API on latest Flutter release More details of issue here https://stackoverflow.com/questions/59481062/flutter-on-android-studio-cloning-from-git-problem-package-get-has-not-been-ru

    opened by maxeema 1
  • README: Typo in press event handler name

    README: Typo in press event handler name

    The What you will learn section in README.md says:

    How to use onClick listeners to detect when buttons are pressed.

    There is no onClick listener associated with a FlatButton widget. It should be onPressed instead, as we learn all along in the videos as well.

    opened by anu-rock 1
  • Project runs but Dice don't appear

    Project runs but Dice don't appear

    I just cloned the project using Version Control. I got the dependencies and then did a test run. App completed but no dice. Got this message:

    I/Choreographer( 6942): Skipped 55 frames! The application may be doing too much work on its main thread.

    opened by Sassyone491 0
  • pub.dartlang.org error how can i resolve

    pub.dartlang.org error how can i resolve

    Got socket error trying to find package cupertino_icons at https://pub.dartlang.org. pub get failed (server unavailable) -- attempting retry 6 in 32 seconds...

    opened by Xpertopero 1
  • Build failed due to use of deprecated Android v1 embedding

    Build failed due to use of deprecated Android v1 embedding

    The project is unable to compile due to the migration to Android v2 embedding. Flutter provides instructions on how to remedy this issue, but the process can be complicated for people who are new to programming.

    Migration Instructions for Android v2 Embedding

    opened by NGHTMR3 6
  • Make it it work for current android (api 32) and flutter 2.10.3

    Make it it work for current android (api 32) and flutter 2.10.3

    Migrated to current flutter/dart/android sdk.

    To use it before this PR is merged:

    git clone https://github.com/londonappbrewery/dicee-flutter.git cd dicee-flutter git pull origin pull/45/head

    Or directly clone my repo: https://github.com/philippkeller/dicee-flutter

    opened by philippkeller 1
  • Github cloned projects could'nt be run.

    Github cloned projects could'nt be run.

    Your Flutter application is created using an older version of the Android embedding. It's being deprecated in favor of Android embedding v2. Follow the steps at

    https://flutter.dev/go/android-project-migration

    to migrate your project.

    opened by Choubdar 0
Owner
London App Brewery
The Best Programming School in the World
London App Brewery
Learn to Code While Building Apps - The Complete Flutter Development Bootcamp

BMI Calculator ?? Our Goal The objective of this tutorial is to look at how we can customise Flutter Widgets to achieve our own beautiful user interfa

London App Brewery 146 Jan 1, 2023
Learn to Code While Building Apps - The Complete Flutter Development Bootcamp

Quizzler ❓ Our Goal In this tutorial we will be reviewing Stateful and Stateless Widgets as well as learning about the fundamental building blocks of

London App Brewery 169 Dec 31, 2022
Starter-Flutter - Starter flutter project for best architecture and seperation of code

Modular-Architecture Codebase CodeBase , Infrastructure and the common Layers (c

Ahmed Tawfiq 13 Feb 16, 2022
A starter kit for beginner learns with Bloc pattern, RxDart, sqflite, Fluro and Dio to architect a flutter project. This starter kit build an App Store app as a example

Flutter Starter Kit - App Store Example A starter kit for beginner learns with Bloc pattern, RxDart, sqflite, Fluro and Dio to architect a flutter pro

kw101 678 Jan 8, 2023
Dicee Flutter App

Dicee ?? About Me : https://about.me/aakashpadhiyar Youtube Channel: https://www.youtube.com/channel/UCtuoofxzdxsmtRtEy27710g Freelance : https://www.

Aakash Padhiyar 3 Jun 28, 2022
bootcamp flutter beginner Kuldi Project week 2

tugasweek2 A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if th

null 0 Nov 27, 2021
Production-grade project developed during the Reso Coder Academy Flutter Bootcamp: It's a mobile Github repository viewer

RepoStar - GitHub Starred Repository Manager Production-grade project developed during the Reso Coder Academy Flutter Bootcamp. It's a mobile Github s

Kishan Dhankecha 4 Aug 18, 2022
Starter project for Flutter plugins willing to access native and synchronous rust code using FFI

Flutter Rust FFI Template This project is a Flutter Plugin template. It provides out-of-the box support for cross-compiling native Rust code for all a

Jør∂¡ 561 Dec 7, 2022
A flutter plugin about qr code or bar code scan , it can scan from file、url、memory and camera qr code or bar code .Welcome to feedback your issue.

r_scan A flutter plugin about qr code or bar code scan , it can scan from file、url、memory and camera qr code or bar code .Welcome to feedback your iss

PengHui Li 112 Nov 11, 2022
flutter development bootcamp layout challenge #2.1

MiCard App Challenge Hey folks! This app is the continuation of the layout_challenge_app. I coded this app from scratch because unfortunate things hap

Damla Çim 1 Jan 6, 2022
Techcareer.net Flutter Bootcamp Bitirme Projesi

foodie Techcareer.net Flutter Bootcamp Bitirme Projem olan Foodie, bir yemek sipariş uygulamasıdır. Bu projeyi gerçekleştirirken kullandığım yapılar;

Lütfiye Yaşar 4 Oct 3, 2022
Flutter firebase starter project

Flutter Firebase Starter project Made with ?? from Nepal A project you can clone to build your next project with Flutter with Firebase services. What

Damodar Lohani 262 Dec 29, 2022
Project-x2 - A Flutter E-Commerce starter template that bootstraps development of your mobile application

Flutter E-Commerce UI KIT A powerful Flutter E-Commerce starter template that bo

null 1 Apr 7, 2022
Flutterstarterproject - Clean Architecture Flutter starter project, using tdd + bloc

Flutter Starter Project Generated by the Nero Lab CLI ?? A Nero Lab Project crea

Muhammad Noerhidayatullah 12 Dec 8, 2022
Flutter starter project - boilerPlate for Clean Architecture with Domain-Driven-Design with commonly used dependencies

flutter_starter_project A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you

MJ Montes 0 Jan 2, 2022
Code, Exercises & Syllabus for my Complete Dart Course

Dart Course | Code With Andrea This repo contains all the exercises and solutions from my Dart Course. Course Syllabus 1. Introduction Making the most

Andrea Bizzotto 244 Dec 30, 2022
Udemy Course "Dart and Flutter: The Complete Developer's Guide" Project. (With Hive DB)

Udemy-Course-Flutter Udemy Course "Dart and Flutter: The Complete Developer's Guide" Project. (With Hive DB) The course: https://www.udemy.com/course/

Muhammad Tayyab 1 Jun 11, 2022
School Project to complete a course,uses a python backend and a flutter frontend

hit_400_app Getting Started This project is a starting point for a Flutter application. #Run flutter packages get #Run the python main.py after instal

null 0 Dec 28, 2021
Use the template to create your own repository, complete the project and verify

Proyecto Nivelación MisionTic Usar el template para crear un repositorio propio,

nockturb 0 Dec 20, 2021