![](/img/trans.png)
[英]Why primarySwatch color is not applied when colorScheme is used in Flutter?
[英]How do I know which color is applied to which component in ColorScheme flutter?
描述如下所示,這還不夠!!!! 我累了!!
ColorScheme is a set of 25 colors based on the Material spec that can be used to configure the color properties of most components.
The main accent color groups in the scheme are primary, secondary, and tertiary.
我想知道 flutter 中的哪個組件應用了哪種顏色
例如,
primary
就是這樣應用到FloatingActionButton
上的!
好吧,正如它所說, Flutter 遵循了 Material design 系統和配色方案,因此您可以從 Material design 官方網站了解 colors 使用了哪些小部件和元素,查看:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.