Flutter common commands

1. Create a project

flutter create <name>

2. Download dependent packages

flutter pub get

3. Clear dependencies

flutter clean

4. Update the flutter dependency package

flutter packages upgrade

5. Get the simulator list

flutter emulators

6. Get the real device list and iOS simulator

flutter devices

7. Run the specified simulator or real machine

flutter run -d <deviceId>

8. Run all simulators (run after startup)

flutter run -d all

9. Android packaging

flutter build apk

10.ios packaging

flutter build ios

11. View flutter sdk branch

flutter channel

12. Switch sdk branch

flutter channel stable

13. Check the environment configuration status

flutter doctor

14. Analyze code

flutter analyze

15. Get all commands of flutter

flutter

16. View command help information

flutter -h

Supongo que te gusta

Origin blog.csdn.net/weixin_48235660/article/details/128854449
Recomendado
Clasificación