Entry level flutter building tutorial

Sort it out by yourself and record it

1. Required tools and dependencies: (1) git command line tool (2) fluent SDK (3) Android studio (4) vs Code

2. Get the download address of the official website of the fluent SDK (1) https://flutter.dev/docs/development/tools/sdk/releases#windows (2) Unzip the installation package zip to the path where you want to install the flutter SDK (e.g. C: \ SRC \ flutter; note: do not install flutter to a path that requires some high permissions, such as C: \ program files \). (3) Locate flutter under the flutter file in the flutter installation directory_ Console.bat, double-click to run and start the fluent command line. Next, you can run the fluent command on the fluent command line.

3. Update the environment variable "Control Panel > user account > user account > change my environment variable > user variable" (1) entry path, and then take the full path of fluent \ bin as its value. (2) entry pub_ HOSTED_ URL, value https://pub.Flutter-io.cn (3) Entry flutter_ STORAGE_ BASE_ URL, value https://storage.Flutter-io.cn

4. Install Android studio (1) download and install at: https://developer.android.com/studio/index.html (2) Start Android studio, and then execute the Android studio installation wizard. This will install the latest Android SDK, Android SDK platform tools and Android SDK building tools, which are necessary for flutter to develop for Android

4. Configure vs Code (1) call View > command palette... (2) enter 'install' and select extensions: install extension action (3) enter fluent in the search box, select 'fluent' in the search results list, and then click Install (4) select 'OK' to restart vs code

After configuration, execute the fluent doctor on the command line to see what is not configured

5. Create a flutter demo (1) start vs Code (2) call View > command palette... (3) enter 'flutter', then select 'flutter: new project' action (4) enter the project name (such as myapp), then press enter (5) specify the location of the project, and then press the blue OK button (6) wait for the project creation to continue, and the main.dart file is displayed

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>