Flutter:- show BottomSheet transparency

后端 未结 5 1777
傲寒
傲寒 2021-02-14 12:10

I want to open a showBottomSheet. here is my code which working fine, I am able to open ButtomSheet, but it\'s not giving transparency effect. that I could see behind of this sh

5条回答
  •  名媛妹妹
    2021-02-14 12:25

    It is very easy, only implement in main:

    bottomSheetTheme: BottomSheetThemeData(
                backgroundColor: Colors.black.withOpacity(0)),
    

    Also, see the image below.

    Screenshot of the above code in context

提交回复
热议问题