【发布时间】:2021-12-10 08:29:58
【问题描述】:
我想在颤振中使用模态底页。 但我不能拖动它。
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])为其设置捕捉。
像这样:
【问题讨论】:
标签: flutter dart draggable bottom-sheet flutter-showmodalbottomsheet