将Flutter Web和桌面添加到android Studio中的现有flutter(android/ios)项目 [英] Add flutter web and desktop to existing flutter (android/ios) project in android studio

查看:336
本文介绍了将Flutter Web和桌面添加到android Studio中的现有flutter(android/ios)项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道可能还很早,但是我想尝试在一个项目中使用现有的全面的跨平台支持. 稳定性不是我的主要关注点.

I know it maybe still early but I want to try and use full flutter existing cross-platform support in one project. Stability is not my main concern.

我已经在android studio中启动了一个flutter项目.自然,我(android/Ios)运行顺利.但是我很想将Web和桌面添加到同一项目中.

I have started a flutter project in android studio. Naturally I have (android/Ios) going smoothly. But I would love to add Web and desktop to the same project.

请帮助我,并提供指导,或者如果有解决方案,任何人都做了很多实验.

Please help me with and direction, or if there is solution any one has created however much experimental.

推荐答案

有针对Web的迁移指南此处.我将其启动并在一个非常基本的现有应用程序上运行.

There is a migration guide for web here. I got it up and running on a very basic existing app.

最好的方法是在一个单独的分支中执行此操作,因为它需要更改软件包,我什至首先删除了.packages和pubspec.lock文件.然后,我运行pub get(不是flutter packages get)下载所需的软件包并运行一些预编译器.

Best way is to do it in a separate branch since it requires changing packages and I even deleted .packages and pubspec.lock files first. Then I ran pub get (not flutter packages get) to download the required packages and run some precompilers.

这篇关于将Flutter Web和桌面添加到android Studio中的现有flutter(android/ios)项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆