小编Tha*_*iri的帖子

未定义名称“颜色”。在 Flutter 中使用 TextStyle 类时

我是颤振新手,收到错误未定义名称“颜色”。使用颜色时。在 TextStyle 类中

Widget nameCode() => Expanded(
  flex: 1,
  child: Center(
    child: Text(
      'GAIN',
      style: TextStyle(
          color: Colors.blue),
    ),
  ),
);
Run Code Online (Sandbox Code Playgroud)

IDE 中显示错误

colors dart flutter

2
推荐指数
1
解决办法
2215
查看次数

标签 统计

colors ×1

dart ×1

flutter ×1