Using Android Studio’s (or IntelliJ’s) built-in debugging features, such as the ability to set breakpoints. DevTools replaces the previous browser-based profiling tool, Observatory. Using DevTools, a suite of debugging and profiling tools that run in a browser and include the Flutter inspector. Note: You can debug your app in a few ways. Any analysis issues are shown in the Dart Analysis pane: Viewing all current source code problems (View > Tool Windows > Dart Analysis). Navigating to type declarations (Navigate > Declaration), and finding type usages (Edit > Find > Find Usages). The Flutter plugin performs code analysis that enables the following:Ĭode completions based on rich type analysis. Under Project location enter, or browse to, the directory holding your existing Flutter source code files. Important: Do not use the New > Project from existing sources option for Flutter projects. To create a new Flutter project containing existing Flutter source code files: Your organization name should be unique.Ĭreating a new project from existing source code
They cannot be changed once the app is released. If you think you might ever release this app, it is better to specify these now. Along with the name of the app, this is used as the package name for Android, and the Bundle ID for iOS when the app is released. When creating a new app, some Flutter IDE plugins ask for an organization name in reverse domain order, something like com.example. If you might publish this app, set the company domain. Select Flutter in the menu, and click Next.Įnter your desired Project name and Project location. In the IDE, click Create New Project from the Welcome window or File > New > Project from the main IDE window. To create a new Flutter project from the Flutter starter app template: You can create a new project in one of several ways. If dart or flutter are listed, update them. Open preferences (Android Studio > Check for Updates on macOS, Help > Check for Updates on Linux). You should be prompted in the IDE when an update is available. Updates to the plugins are shipped on a regular basis. Follow the Set up an editor instructions to install the Dart and Flutter plugins.