본문 바로가기

개발/flutter

하단에 붙어서 스크롤 가능한 시트 DraggableScrollableSheet

반응형
return DraggableScrollableSheet(
  initialChildSize: 0.0,
  minChildSize: 0.0,
  maxChildSize: 1.0,
  snap: true,
  snapSizes: [
    0.4, 0.7, 1.0
  ],
  controller: draggableSheetController,

 

draggableSheetController.animateTo(0.6, duration: Duration(milliseconds: 300), curve: Curves.linear);

 

반응형