我想在颤振中使用模态底页。但我不能拖动它。
showModalBottomSheet(
context: context,
isScrollControlled: true,
isDismissible: true,
enableDrag: true,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.vertical(top:
Radius.circular(20),), ),
clipBehavior: Clip.antiAliasWithSaveLayer,
builder: (context) {
return StreamBuilder(
stream: controller.stream,
builder: (context, snapshot) =>
GestureDetector( behavior: HitTestBehavior.translucent,
child: Container(
height: snapshot.hasData
? snapshot.data as double
: pageWidth * .9,
child: PlayerCardDialog(
epdId: episodes[index['Ep_ID'])), ),); });
谁能帮帮我?如何拖动底部工作表以及如何在四个位置([0.3、0.6、0.9、1.0])为其设置捕捉。
像这样 :