Flutter: How to create a new project

我是研究僧i 提交于 2019-12-03 04:44:14

There's no need to use XCode

You can just do a flutter create my_project_name in the terminal

I think a better way is to create Flutter project by command line with iOS support:

In the terminal in a desired directory run command

flutter create -i swift -a kotlin your_gibrid_project_name

This util will create a project that you can run on iOS and on Android as well!

After you can develop it in IDE that suits for you

Full command for production can look like

flutter create --org com.yourcompany -i swift -a kotlin --description 'Your App Description' your_app_name

Params

--org com.yourcompany

will form applicationId for Android:

com.yourcompany.yourappname

and iOS PRODUCT_BUNDLE_IDENTIFIER:

com.yourcompany.yourAppName

parameter

--description 'Your App Description' 

sets package description in our pubspec.yaml

To find all possible options run in the terminal command

flutter create --help
MobileApps

Yet, there is no way to create a project using Xcode Editor.

As of now, you must have to create a project using 'Terminal' app.

Here I created a sample test_project using following terminal command

flutter create test_project

And here is my Xcode Project ready with workspace.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!