我对颤振很陌生,并试图为我的 modalSheet 实现一个可忽略的栏。像这样的图像:
我只能想到一个堆栈。但这会使代码变得复杂。请让我知道是否有更好的方法。
这是您正在寻找的modal_bottom_sheet:
showBarModalBottomSheet(
expand: true,
context: context,
backgroundColor: Colors.transparent,
builder: (context, scrollController) =>
ModalInsideModal(
scrollController: scrollController),
)),