In my app i want to set DraggableScrollSheet in google map view but i want to set sheet size as per content size but it not work. when i open a scrollsheet it show white space. and the view is not write so i want to set the scrollsheet height as per content height.
DraggableScrollableSheet(
expand: true,
snap:false,
minChildSize: 0.1,
//maxChildSize: 0.5,
controller: sheetController,
builder: (BuildContext context, scrollController) {
return Container(
color: white,
child: CustomScrollView(
controller: scrollController,
slivers: [
SliverToBoxAdapter(
child: Center(
child: Container(
decoration: BoxDecoration(
color: Theme.of(context).hintColor,
borderRadius: const BorderRadius.all(Radius.circular(10)),
),
height: 4,
width: 40,
margin: const EdgeInsets.symmetric(vertical: 10),
),
),
),
SliverToBoxAdapter(
child: _panel()
)
],
),
);
})