Skip to main content

Posts

Showing posts with the label intelliJ

New site for Dart news and articles

For the latest Dart news, visit our new blog at  https://medium.com/dartlang .

Flutter IntelliJ plugin v19: Fit and Finish

IntelliJ EAP support This month’s release now supports the public preview release of Intellij 2017.3. With this release, you’ll get a new version of the Dart plugin. That release includes features to help you better navigate and understand large build() methods, including things like showing synthetic text ‘closing labels’ at the end of nested constructors. Android Studio support improvements We’ve continued to work on our Android Studio integration (first available in the last month’s release). The fixes and improvements here include: fixes to the language selector in the project wizard fixes to the label on the project location directory picker showing when a valid path is entered in the SDK field of the project wizard displaying a warning when installing the plugin into canary builds of Android Studio 3.1 minor UI tweaks, like using consistent punctuation Fit and Finish We’ve also polished the plugin generally, and closed out many issues in: the hot re...

Flutter IntelliJ plugin v18: Android Studio support

Android Studio support You can now install the Flutter plugin into Android Studio, and create, edit, and run your Flutter apps there. The plugin requires at least Android Studio 3.0 (currently at Android Studio 3.0 Preview beta 7). As this is the first Flutter plugin release to support Android Studio it should be considered beta; your feedback will help us improve the integration. Improved support for developing and consuming Flutter plugins For this release we worked on improving the support for developing and consuming Flutter plugins. In addition to minor fixes and workflow improvements, we show referenced Flutter plugins in the ‘External Libraries’ part of the project view. From here, it’s easy to dig into the native iOS and Android implementations of a plugin, if desired. Reload on save is now the default behavior The ‘hot reload on save’ feature is now enabled by default. When running an app, hitting save or pressing the save keyboard shortcut will trigger a h...

Flutter IntelliJ plugin v17.0: Hot reload on save and improved project wizard

Hot reload on save By request, we now support doing a hot reload on file save. On an explicit save (cmd-s / ctrl-s or File > Save All), if there’s an app currently running we will try to reload changes into that app. This integrates well with how IntelliJ’s save action works — the default behavior of the action maps to a save-all command. If there are analysis errors on save, instead of reloading we will highlight errors in the analysis view. This behavior is off by default and can be turned on in Settings > Languages & Frameworks > Flutter. Feedback on this feature is much appreciated and will help us make additional improvements to the workflow. In particular, should we enable this feature by default? Improved project wizard We’ve updated the new project wizard! You can now choose which type of Flutter project to create: an app, a plugin project – to expose native services, or a package – to create a reusable Dart library. In add...

Flutter IntelliJ plugin v16.0: Testing and app launching!

New testing support We’ve added the ability to run individual Flutter tests via actions in the editor’s gutter: And now support running Flutter’s widget tests; see https://flutter.io/testing/# widget-testing . Project structure We re-worked how we define Flutter project and module types in IntelliJ. This addresses a few outstanding issues and will let us more easily go into more IntelliJ based products in the future. The next time you open an existing project with the new version of the plugin, you’ll see a one-time ‘module type updated’ message: Launching improvements This release sports several improvements to app launching: Launch your app in profile and release modes (available via the ‘Run’ menu) Start Android emulators from the device dropdown; this requires the Android AVDs to have been already created in something like Android Studio Tweaks to when the run and reload buttons are enabled For more detailed info on the version 16.0 release, s...

Flutter IntelliJ plugin version 15.0: Improved project creation and support for flutter test

Flutter test support! We now support running and debugging ‘flutter test’ tests! Right click on your Flutter tests in the test/ directory, and choose the ‘Run’ or ‘Debug’ option: The results are displayed in the standard IntelliJ test runner. The support for this just recently landed in Flutter’s alpha channel, so you don’t see support for it in IntelliJ, you may want to run ‘flutter upgrade’. Happy testing! Improved project creation When creating a new Flutter project, you now have the option of installing the Flutter SDK from the new project wizard. This will help new users get started – they can create their first Flutter project without having to make a detour to the command line. In addition, we’ve improved the error reporting on project creation failures. Reload feedback improvements Based on user feedback, we’ve made some improvements to the UI for hot reload. When clicking the hot reload button (or using the reload key binding), we disable the hot reload ...

Dart plugin for IntelliJ IDEA and WebStorm

The Dart plugin for IntelliJ IDEA-based IDEs, has a new release with important enhancements. Notably, the plugin is now compatible with all versions of IntelliJ IDEA, including IDEA 13.1 Community Edition—the free open-source version of IntelliJ IDEA. This means you can get a version of the IntelliJ IDE with Dart auto-completion, code validation, package management, quick fixes, navigation, and full-featured command-line app debugging for free! Pub Integration The Dart plugin features rich pub integration. The pub tool commands get, upgrade, and build are available by context-clicking the pubspec.yaml file. Configuring the SDK When creating a new Dart project with the project wizard or starting a Dart project in the IDE for the first time, you’re asked to set up the path to Dart SDK. If the SDK was downloaded together with Dart Editor, the path to Dartium is added automatically. You can configure command-line options and a custom user data directory for Dartium. With ...