Is there a way to make the ModalBottomSheet
with a fixed heigh i don't want it's height to expand when scrolling
This is the code i used
showModalBottomSheet(
context: context,
isScrollControlled: true,
backgroundColor: Colors.transparent,
builder: (context) => DraggableScrollableSheet(
builder: (BuildContext context,
ScrollController scrollController) {
return Container(
color: Colors.blue[100],
child: ListView.builder(
controller: scrollController,
itemCount: 25,
itemBuilder:(BuildContext context,int index) {
return ListTile(
title: Text('Item $index'));
},
),
);
},
),
);