首页 > 解决方案 > 调试模式下的 Chrome ......带来一个空白页面 - Flutter web

问题描述

我遵循了构建 Flutter Web- 的说明和提示。

调试项目后,我仍然有一个空白页。

我尝试从头开始创建,包括 Web 服务器和页面仍然

  1. [√] 已连接设备(2 个可用)- 已设置 Chrome 和网络服务器 [√] Chrome - 为网络开发
  2. 没有错误信息,只是一个空白页。3.我还修改了文件launch.json
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [{
        "name": "Flutter",
        "request": "launch",
        "type": "dart",
        "args": ["-d", "web-server","--web-port", "8080"],
    }]
}

标签: flutterflutter-web

解决方案


推荐阅读