flutter - 参数类型 'Color' 无法分配给参数类型“MaterialColor?”

标签 flutter dart

如何在primarySwatch中使用RGBO enter image description here

最佳答案

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/

相关文章:

firebase - 如何查看收藏夹中的内容?

dart - 如何重命名和/或删除 pub 包

dart - flutter 应用程序缓慢

ios - Flutter:将 dsym 符号上传到带有风格的 Firebase crashlytics

dart - Flutter 如何为 Map<K,V> 中的键更新/添加值

flutter - 在 Flutter Text Widget 中调整新行间距

flutter - 如何在 Flutter 上使用 TimerTask?

flutter - flutter -具有底部文本字段的容器

android - 单击图标时 BottomNavigationBarItem 打开相应的页面

flutter : map dependencie crashes the app