【问题标题】:The argument type 'Color' can't be assigned to the parameter type 'MaterialColor?参数类型“颜色”不能分配给参数类型“材料颜色”?
【发布时间】:2022-01-16 09:57:13
【问题描述】:

如何在 primarySwatch 中使用 RGBO

【问题讨论】:

    标签: flutter dart


    【解决方案1】:

    primarySwatch 不是颜色。它是材料颜色。这意味着它是材质应用程序将使用的不同色调的颜色。默认颜色为蓝色。 更多阅读文章 https://dev.to/rohanjsh/custom-swatch-for-material-app-theme-primaryswatch-3kic

    What is the difference between primaryColor and primarySwatch in Flutter?

    【讨论】:

      猜你喜欢
      • 2021-08-15
      • 2021-06-05
      • 2021-12-14
      • 2020-11-29
      • 2021-08-27
      • 2021-06-16
      • 2021-08-18
      • 2023-04-09
      • 2022-07-20
      相关资源
      最近更新 更多