-
This version of the course contains modified TODOs from Scott Stoll, of Flutter Productions (https://flutter.productions). The TODOs have been changed in an attempt to ensure students will understand exactly what is required of them. As this is a beginner course it was felt the TODOs as written gave too little guidance, resulting in students being forced to do hours or days of research as they attempted to understand what was expected of them.
-
Though that is an excellent way to have the TODOs for an advanced course, my own teaching experience has lead me to believe beginners need a much more step-by-step approach, with extremely clear direction.
-
Finally, this course is excellent for the beginner, teaching good habits of making variables out of Widgets or Widget trees where possible, and then using these variables in a build() method. Another good habit that accomplishes much the same thing is proper use of the const keyword when declaring a Widget.
This repo contains everything you need for Build Native Mobile Apps with Flutter, by Google and Udacity. The Unit Converter app has been broken down into sub-projects. To get started, set up your development environment and clone this repo, using git clone [email protected]:flutter/udacity-course.git
or git clone https://github.com/flutter/udacity-course.git
.
- Open the IDE and select
Import project (Gradle, Eclipse ADT, etc.)
. After you import the first time, you can useOpen an existing Android Studio project
in the future. - Choose the
unit_converter
project folder, located in this repo at/unit_converter/unit_converter
. SelectNext
for all setup instructions, making sure that the Source Files screen shows Flutter as an option. - You can view your Flutter app files in the Projects tab in the Project Tool Window (View -> Tool Windows). Make sure your Flutter SDK is set and dependencies have been updated.
- Make sure your device/emulator is running. You can view the AVD Manager at Tools -> AVD Manager, or by typing
Ctrl/Cmd
+Shift
+a
and typing in 'AVD Manager'. - Press the green Play button to run the app. Note that
main.dart
should be chosen in the dropdown on the left of the green Play button.
- Run
cd ~/<repo location>/unit_converter/unit_converter
. - Make sure your device/emulator is running.
- Run
flutter run
.
Each coding exercise for the Udacity course is located in the course
directory. Each exercise is split into a standalone Task project and Solution project. The Solution is one of many possible solutions. You can compare your implementation with the solution using the diff
command.
- Open the IDE and select
Import project (Gradle, Eclipse ADT, etc.)
. After you import the first time, you can useOpen an existing Android Studio project
in the future. - Find the coding exercise you want to do and choose the
task_
project folder. For example, for the second coding exercise,02_category_widget
, choose thetask_02_category_widget
project located in this repo at/course/2_category_widget/task_02_category_widget
. - You can view your Flutter app files in the Projects tab in the Project Tool Window (View -> Tool Windows). Make sure your Flutter SDK is set and dependencies have been updated.
- Make sure your device/emulator is running. You can view the AVD Manager at Tools -> AVD Manager, or by typing
Ctrl/Cmd
+Shift
+a
and typing in 'AVD Manager'. - Press the green Play button to run the app. Note that
main.dart
should be chosen in the dropdown on the left of the green Play button. - Follow the README and complete the TODOs in the coding exercise.
Use strong mode.
Please feel free to file issues at https://github.com/flutter/udacity-course/issues. Flutter issues can be filed at https://github.com/flutter/flutter/issues.
You can also contribute changes. Setting up:
- Fork
https://github.com/flutter/udacity-course
into your own GitHub account git clone [email protected]:<your_name_here>/udacity-course.git
cd udacity-course
git remote add upstream [email protected]:flutter/udacity-course.git
Submitting changes:
git fetch upstream
git checkout upstream/master -b name_of_your_branch
- Make changes
git commit -a -m "<your informative commit message>"
git push origin name_of_your_branch
To send a pull request:
git pull-request
(if you are using Hub) or go to https://github.com/flutter/udacity-course and click the "Compare & pull request" button- Tag the relevant people and GitHub issue (if any)
For a list of Flutter resources to help you get started as well as continue learning after the course, check here.