flutter create -t package my_package
a sharable Flutter project that contains modular Dart code
flutter create -t plugin my_plugin
a sharable Flutter project that contains platform-specific code for android and iOs
The following command shows how to create a Flutter plugin with Swift for iOS and Kotlin for Android.
$ flutter create -t plugin -i swift -a kotlin my_plugin
flutter create –org=com.mycompany –description=”E-commerce app” my_ecommerce_app
(2 – – )
Features of flutter create
–overwrite / –no-overwrite
whether to overwrite existing files. Off
–pub / –no-pub
whether to run flutter packages get after the project has been created.
On
–offline / –no- offline
whether to run flutter packages get in offline mode or not. Only applicable when –pub is on.
Off
–with-driver- test / –no-with- driver-test
whether to add a flutter_driver dependency and generate a sample Flutter Drive test.
Off