参考:https://flutter.dev/docs/get-started/web
1.项目的创建和以前没有任何区别
2.运行的时候设备选择Chrome即可

3.运行效果

4.生产发布
flutter build web或者flutter run --release,产物如下

5.思考
a.混合开发还能转换为Web吗?
b.产物部署后为啥手机上有的浏览器打不开
参考:https://flutter.dev/docs/get-started/web
a.混合开发还能转换为Web吗?
b.产物部署后为啥手机上有的浏览器打不开
本文标题:Flutter2.0 Web体验
本文链接:https://www.haomeiwen.com/subject/mvxbcltx.html
网友评论