Coder Social home page Coder Social logo

dicee-flutter's Introduction

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

dicee-flutter's People

Contributors

angelabauer avatar anu-rock avatar themuellenator avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dicee-flutter's Issues

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".

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.

not able to customize app icon

2021-08-21 (1)

im not able to customize my app icon in different shapes because there is no image asset editor showing in my screen.

please reply me with a solution asap.

doesn't work with the latest flutter version

this app after cloning doesn't work with the latest flutter version
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

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.

Github cloned projects could'nt be run.

Whenever i try to run cloned projects from Github....It says "Running gradle task 'assembleDebug'.." and stays like that forever.But when i create new flutter projects and copy your code it works...any ideas on what could be the problem.

Dart file

When I clone the dicee code and open it in android studio, there is no dart file. How do I fix this?

The App not running

At 1:08 of the lecture, I cannot run the package. Also, there is no build as highlighted on yours. A screenshot to show please. Thank you.
issues

FlatButton Deprecated

As FlatButton Deprecated , App no longer running now . Please share the solution.

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.

Build failed due to deprecated Android V1 Embedding.

Build failed due to use of deprecated Android v1 embedding.

Hello.
I am doing the dicee flutter project and whenever I build the stub project, I see this error saying "Build failed due to use of deprecated Android v1 embedding." I searched this up but it says to change some stuff in some AndroidManifest.xml and some build.gradle, but I don't know how I can do it. I can't continue with the project if this error is not fixed.
Screenshot 2023-03-28 at 8 43 36 AM
I use VSCode but I don't think it is related to the error.

Please someone help me to fix this.

dicee-flutter is not a valid Dart package name, change to dicee_flutter (underscore, not hyphen)

.../dicee-flutter$ flutter build web
Running "flutter pub get" in dicee-flutter...
Missing index.html
.../dicee-flutter$ flutter run -d chrome
This application is not configured to build on the web.
To add web support to a project, run flutter create ..
.../dicee-flutter$ flutter create .
"dicee-flutter" is not a valid Dart package name.
...
DO use `lowercase_with_underscores' for package names.
....

...appBrewery$ mv dicee-flutter/ dicee_flutter/
...dicee_flutter$ flutter create .
Recreating project ....
dicee_flutter.iml (created)
test/widget_test.dart (created)
...

Wrote 35 files.
All done!

.../dicee_flutter$ flutter run -d chrome
Launching lib/main.dart on Chrome in debug mode...
Building application for the web...

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.