Skip to content

AutomaticNotchShape 继承自: NotchShape

由 ShapeBorder 值创建的凹口形状。

它使用一个形状作为外轮廓,并可选择性地减去第二个形状来形成凹口。这常用于 BottomAppBar 等需要为悬浮操作按钮留出空间的控件。

属性 ​

名称类型默认值说明
host'ShapeBorder'requiredThe shape of the control that uses the notch. This is typically the outer shape of the host control, such as a BottomAppBar. Note: The shape must not depend on text direction.
guestOptional['ShapeBorder']NoneThe shape to subtract from host to create the notch. This is typically the shape of the control the notch should accommodate, such as a FloatingActionButton. If this is None, no notch is cut out even when space for a guest control is available. Note: The shape must not depend on text direction.

关注我,学习大模型、大数据、Python等热门技术。