如何在底部工作表模式中禁用/避免向下拖动手势,以便用户可以在模式中进行交互而不会意外关闭模式?在下方更新了实际的模态底页。returnshowModalBottomSheet(context:context,builder:(BuildContextcontext){...}} 最佳答案 将enableDrag设置为falseboolenableDragIftrue,thebottomsheetcandraggedupanddownanddismissedbyswipingdownwards.https://docs.flutter