如何在Android Studio中使用Flutter(Dart)文件

huangapple go评论60阅读模式
英文:

how to use flutter(dart) file in android studio

问题

我使用Flutter和Android Studio创建了这个项目,并执行了粗略的操作 "右键单击项目根文件夹 -> Flutter -> 在Android Studio中打开Android模块" 以使用某些功能。

当我打开不同的项目时,它会以现有的Flutter设置打开,就像这样(图片2)。
如何在Android Studio中使用Flutter(Dart)文件

但当我打开这个(执行了 "在Android Studio中打开Android模块" 的练习)项目时,它以真实的Android Studio设置打开,就像这样(图片1)。
如何在Android Studio中使用Flutter(Dart)文件

但我想从现在开始在现有的设置中使用这个项目(就像图片2那样)。
我想要使用Dart文件... 我该怎么做?
Flutter是我的第一个编程语言,所以我对使用所有的程序都是新手。
请救救我。谢谢....

英文:

i made the project with flutter using android studio,
and i carried out the coarse "Right click the Project root folder -> Flutter -> Open Android module in Android Studio." to use some function.

When I open different project, it is opened in existing flutter setting lilke this (photo 2).
如何在Android Studio中使用Flutter(Dart)文件

But when I open that (carried out the practice 'open android module in android studio') project, it is opened in real android studio setting like this(photo1).
如何在Android Studio中使用Flutter(Dart)文件

but i want to use the project in existing setting(like photo2) from now(like photo 1).
i want to use dart file... how can i do?
Flutter is my first coding, so I'm nooblette to using all program.
Please save me. thankyou....

答案1

得分: 0

你已经打开了 Android 文件夹作为一个项目,只需关闭该项目,然后打开一个新的项目作为你的 Flutter 项目的根目录,然后它将以 Flutter 项目的方式打开,就像你在第一张图片中展示的那样。

英文:

You have opened the android folder as a project simply close the project and open a new project as root of your fluter project then it will open as a flutter project as you shown in first picture..

huangapple
  • 本文由 发表于 2023年2月18日 11:42:50
  • 转载请务必保留本文链接:https://go.coder-hub.com/75491029.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定