使用enableDrag的Flutter底表

时间:2019-11-05 11:07:28

标签: flutter

我设置了enableDrag=false,但bottomSheet仍可拖动,如何禁用拖动

var bottomSheet = BottomSheet(
        onClosing: () {},
        enableDrag: false,
        builder: (context) {
          return Container(
            color: Colors.white,
            alignment: Alignment.centerLeft,
            child: Text("aaaaa"),
          );
        });

Scaffold.of(context).showBottomSheet(bottomSheet.builder);

0 个答案:

没有答案