Flutter commonly used commands

New Project

flutter create project_name

Install the required package

If you use vscode develop, install the relevant plug-in, it will automatically change pubspec.yaml file deletions package.

flutter packages get

or

flutter pub get

Packaged app

// Android
flutter build apk

// ios
flutter build ios

Debug release version

flutter run  --release

Guess you like

Origin www.cnblogs.com/teemwu/p/12105672.html