flutter - 没有名为 home 的命名参数
问题描述
bodyText1: TextStyle(
color: Color.fromRGBO(20, 51, 51, 1)
),
bodyText2: TextStyle(
color: Color.fromRGBO(20, 51, 51, 1)
),
title: TextStyle(
fontSize: 24,
fontFamily: 'Roboto',
)
),
home: Categories(),
),
);
解决方案
ThemeData 没有 home 参数。您可能打算将该行放在下一个右括号下方,因此它适用于 MaterialApp
推荐阅读
- javascript - 如何用 webpack 和 babel 做 $( document ).ready() ?
- c# - 如何反序列化键名.Net中包含点(。)的Json字符串
- django - 根据用户和 NGINX 保护 Django 媒体文件
- java - 无法将用 Java 编写的 Kafka 生产者连接到远程集群节点
- c# - 处理嵌入在 Visual C++ (MFC) 应用程序中的 .NET-ActiveX-Control
- ios - 链接器命令失败,退出代码为 1(使用 -v 来查看调用)Xcode
- css - Tailwind/Vue 动态地将弹性项目对齐到与邻居相同的高度
- angular - Spring Boot Angular Websockets 工作示例
- mysql - 在 MySQL 或 Postgres 中使用混合表字符集时会出现性能问题吗?
- javascript - 为 CSS 网格调整 TradingView 小部件的大小