flutter报错: Arguments of a constant creation must be constant expressions. undefined在掘金39041 2024-04-30 210 阅读1分钟 flutter报错: Arguments of a constant creation must be constant expressions. 常量组件的声明必须使用常量表达式(渣翻,不太懂专业名词) 解决方案: 把组件前的const去掉。 因为你在组件中使用了变量,所以它不再是常量组件了!