I want to use a modal bottom sheet in the flutter. but I can't drag it.
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'])), ),); });
can anyone help me please? how can I drag the bottom sheet and how can I set snapping for it in four positions ([0.3, 0.6, 0.9, 1.0]).
like this :