iosxcodefluttervisual-studio-codexcode9.3-beta

Flutter: How to create a new project


I installed Flutter SDK, following steps, provided from this link: Install on macOS - iOS setup.

But I am unable to create a new sample project in Xcode. I can't find a proper way to start a new project using Xcode.

Here are steps to start a new sample project but not for Xcode: Get Started: Test Drive

How to create a new Flutter project in Xcode?

I'm using Xcode 9.3 - beta 3


Solution

  • There's no need to use XCode

    Use the flutter create command to create a new project:

    In the terminal execute flutter create my_project_name

    The command creates a Flutter project directory called my_project_name that contains a simple demo app.