Reputation: 79686
With the help of installation guide and this solution: How to create a new project in Flutter, I created a sample (default/demo) project in flutter for iOS and Android compatible platforms. And a default project (code) is working fine.
Now, I want to update the code of the project and according to this document guide: Get Started: Test Drive, a file named main.dart
is source file of project and code inside it, is the main source code.
My problem is - How to open main.dart?
Which editor (Xcode/Android Studio or any other tool) can help to open this file? I tried double click on the file, but it shows me a message: "legacy image should be converted".
Upvotes: 1
Views: 7442
Reputation: 146
Here is an answer to your question by Flutter: Get Started: Configure Editor
You can either use Android Studio or Visual Studio Code as a Flutter (main.dart) project editor.
Steps are also mentioned in this document, how you can open Flutter project with these editors:
VS Code: A light-weight editor with Flutter run and debug support.
Install VS Code: VS Code, version 1.20.1 or later.
Install the Dart Code plugin
Validate your setup with the Flutter Doctor
Android Studio: A complete, integrated IDE experience for Flutter.
Install Android Studio: Android Studio, version 3.0 or later.
Install the Flutter and Dart plugins
To install these:
Upvotes: 2
Reputation: 751
Handle your flutter project with Android Studio 3.0 +.
Install plug-ins for Dart
and Flutter
in Android studio and then open your project (root directory) of your project in Android Studio.
Here is sample project in Android Studio, with same name as you used in your project:
Look at this reference document: Get Started: Configure Editor
Upvotes: 1