簡體   English   中英

我如何知道 ColorScheme 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 使用了哪些小部件和元素,查看:

https://m2.material.io/design/color/the-color-system.html

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM