有没有办法围绕 BottomAppBar 进行 ClipPath?

Is there a way to ClipPath around a BottomAppBar?

我正在尝试使用 CustomClipper 剪辑 BottomNavigationBar。

只有当小部件位于正文部分时,使用剪裁的 BottomAppBar 才能正常工作。

只要我把它放在bottomNavigationBar-section中,透明部分后面的body中的内容就被隐藏了。

有没有办法让 BottomAppBar 的 'transparent' 部分真正透明?

我可以将它放回正文部分并将其固定在底部并在其中添加一个英雄,这样它就可以在更改页面时保留下来,但我想这会更好 'more correct'方式,如果我可以把它放在 bottomNavigationBar 部分。

你应该设置:

extendBody: true

作为 BottomNavigationBar 中的 属性。