[英]What is the use of Material Widget?
What is the use of Material widget in flutter? Flutter中Material widget有什么用? even though we can use the properties included in material inside a Material App.即使我们可以在 Material App 中使用包含在 material 中的属性。 What is it's key use.它的关键用途是什么。
The Material widget is responsible for: Material 小部件负责:
Clipping: If clipBehavior is not Clip.none , Material clips its widget sub-tree to the shape specified by shape , type , and borderRadius .裁剪:如果clipBehavior不是Clip.none ,则 Material会将其小部件子树裁剪为shape 、 type和borderRadius指定的形状。 By default, clipBehavior is默认情况下, clipBehavior是
Clip.none for performance considerations. Clip.none出于性能考虑。
Elevation: Material elevates its widget sub-tree on the Z-axis by elevation pixels, and draws the appropriate shadow. Elevation:Material 通过高程像素在 Z 轴上提升其小部件子树,并绘制适当的阴影。
Ink effects: Material shows ink effects implemented by InkFeatures like InkSplash and InkHighlight below its children.墨迹效果:材质在其子项下方显示由InkFeatures实现的墨迹效果,例如InkSplash和InkHighlight 。
For more information about Material Widget go through this link .有关Material Widget 的更多信息,请访问此链接。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.