首页 > 解决方案 > 没有名为 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(),
    ),
      );

标签: flutter

解决方案


ThemeData 没有 home 参数。您可能打算将该行放在下一个右括号下方,因此它适用于 MaterialApp


推荐阅读