flutter installation notes

main
thyik 5 years ago
parent 00c594ca77
commit 73b26d5513

@ -4,7 +4,7 @@
[Home](../../README.md) [Home](../../README.md)
[Reference](https://expressjs.com/en/starter) [Reference](https://expressjs.com/en/starter/installing.html)
Create a project skeleton Create a project skeleton

@ -1,5 +1,7 @@
# Create Spring Boot Project # Create Spring Boot Project
[Reference](https://spring.io/projects/spring-boot)
* Browse [Spring Initialzr](https://start.spring.io/) * Browse [Spring Initialzr](https://start.spring.io/)
* Option to select * Option to select
* Gradle * Gradle
@ -28,7 +30,6 @@ import org.springframework.web.bind.annotation.RestController;
public class HomeController { public class HomeController {
@GetMapping("/home1") @GetMapping("/home1")
@ResponseBody
public String Home(){ public String Home(){
// log instaciate from @Slf4j annotation // log instaciate from @Slf4j annotation
@ -53,7 +54,7 @@ home...
## Create IntelliJ Debug Configuration ## Create IntelliJ Debug Configuration
* `Run `> `Edit Configuration...` * `Run `> `Edit Configuration...`
* Add 'bootRun' Task. Click 'Ok' * Add `bootRun` Task. Click `OK`
* Now `Run...` or `Debug...` accordingly * Now `Run...` or `Debug...` accordingly
* Alternatively, goto `main` and right click on side bar to run / debug * Alternatively, goto `main` and right click on side bar to run / debug
@ -67,5 +68,5 @@ public class StarterApplication {
} }
``` ```
[Build Application Guide](https://spring.io/guides/gs/spring-boot/)

@ -6,8 +6,7 @@
* Unzip to `C:\tools` * Unzip to `C:\tools`
* Add to environment path `C:\tools\flutter\bin` * Add to environment path `C:\tools\flutter\bin`
* Install [Android Studio](https://developer.android.com/studio) * Install [Android Studio](https://developer.android.com/studio)
* Create Android Virtual Device (AVD) with API 29 * Create Android Virtual Device (AVD). Ensure all SDK tools are up-to-date
* API 30 not supported
* Add `vs code` plugin * Add `vs code` plugin
* Flutter * Flutter
@ -20,7 +19,7 @@ $ flutter create myapp
$ cd myapp $ cd myapp
``` ```
Launch AVD using Android Studio Launch AVD using Android Studio.
Run the app Run the app
@ -28,7 +27,21 @@ Run the app
// check AVD connectivity // check AVD connectivity
$ flutter devices $ flutter devices
// check dependencies are up-to-date
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 1.26.0-2.0.pre.200, on Microsoft Windows [Version 10.0.19042.685], locale en-SG)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1.0)
[✓] IntelliJ IDEA Community Edition (version 2020.3)
[✓] VS Code (version 1.52.1)
[✓] Connected device (2 available)
• No issues found!
// run the app // run the app
$ flutter run $ flutter run
``` ```
[Codelab Tutorial](https://flutter.dev/docs/get-started/codelab)
Loading…
Cancel
Save