I solved this problem by putting a container inside a container.
the parent container has a transparent color, while the child has solid color and padding.
BUT STILL i didn't figure out how to blur the background yet.
this is the code:
showModalBottomSheet(
context: context,
backgroundColor: Colors.transparent,
builder: (BuildContext bc) {
return Container(
height: SizeConfig.screenHeight * 0.6,
child: Padding(
padding: EdgeInsets.only(left: SizeConfig.screenWidth * 0.4),
child: Container(
child: SingleChildScrollView(
child:
Padding(
padding: EdgeInsets.only(
top: SizeConfig.blockSizeVertical * 1.5),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
children: <Widget>[
],
),
),
),
),
),
);
});
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…