最佳答案
primarySwatch 不是颜色。这是 Material 颜色。这意味着它是 Material 应用程序将使用的不同深浅的颜色。默认颜色为蓝色。 更多阅读文章 https://dev.to/rohanjsh/custom-swatch-for-material-app-theme-primaryswatch-3kic
What is the difference between primaryColor and primarySwatch in Flutter?
关于flutter - 参数类型 'Color' 无法分配给参数类型“MaterialColor?”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70326005/