Open the IDE and select Import project (Gradle, Eclipse ADT, etc.). After you import the first time, you can use Open an existing Android Studio project in the future.
Choose the unit_converter project folder, located in this repo at /unit_converter/unit_converter. Select Next 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.
Command Line
Run cd ~/<repo location>/unit_converter/unit_converter.
Make sure your device/emulator is running.
Run flutter run.
Building Each Coding Exercise
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.
Android Studio/IntelliJ
Open the IDE and select Import project (Gradle, Eclipse ADT, etc.). After you import the first time, you can use Open 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 the task_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.
请发表评论