What is a FLutter?
Flutter is a cross-platform open source project that can be used to build apps for different platforms, including Android, iOS, and Desktop. Flutter is available on the website of Flutter. Dev /.
The installation
Flutter. Dev/docs/get – st…
Mac OS
- Download storage.googleapis.com/flutter_inf… Go to the local Download directory
- Unzip the files
cd~ / development unzip ~ / Downloads/flutter_macos_1. 17.1 - stable. ZipCopy the code
- Add the bin of flutter to the environment variable
export PATH="$PATH:`pwd`/flutter/bin"
Copy the code
- run
flutter doctor
“, and then follow the prompts returned to operate until all the options are checked, OK
Run the first Flutter project
- perform
Flutter create myFirstApp
Flutter automatically creates a directory of myFirstApp and automatically creates the files needed for the project in this directory - If you’re using MacOS, you can do this
open -a Simulator
To open an iOS emulator - with
Flutter devices
Check to see if the device/emulator is properly connected
- Go to the project directory and compile
cd myFirstApp
Flutter run
Copy the code
Depending on the performance of your computer, the first compilation may take a dozen or twenty minutes to complete.