0

我对颤振很陌生,并试图为我的 modalSheet 实现一个可忽略的栏。像这样的图像:

原型

我只能想到一个堆栈。但这会使代码变得复杂。请让我知道是否有更好的方法。

4

1 回答 1

1

这是您正在寻找的modal_bottom_sheet

showBarModalBottomSheet(
                              expand: true,
                              context: context,
                              backgroundColor: Colors.transparent,
                              builder: (context, scrollController) =>
                                  ModalInsideModal(
                                      scrollController: scrollController),
                            )),
于 2020-08-11T03:05:48.410 回答