How do you adjust the height and borderRadius of a BottomSheet in Flutter?

后端 未结 9 1202
野性不改
野性不改 2021-02-05 03:47

I\'m probably missing something obvious here, but my BottomSheet only takes up the bottom half the screen, even though the widgets in it take up more space. So now there is scro

9条回答
  •  有刺的猬
    2021-02-05 04:18

    Use the Code Below

    Note : If You are using column then use mainAxisSize: MainAxisSize.min

    
    // make isScrollControlled : true
    // if using column then make - mainAxisSize: MainAxisSize.min
    
    showModalBottomSheet(
    isScrollControlled: true,
    context: context,
    builder: (BuildContext bc) {
      return YourWidget();
     }
    )
    

提交回复
热议问题