Output Screenshot:
SOLUTION
bottomSheetTheme: BottomSheetThemeData(backgroundColor: Colors.black
54)
GestureDetector(onTap: () => showModalBottomSheet(
backgroundColor: Colors.transparent,
context: context,
builder: (BuildContext contxt) => Theme(
data: Theme.of(context).copyWith(
canvasColor: Colors.transparent,
),
child: Container(
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.only(
topRight: Radius.circular(20),
topLeft: Radius.circular(20))),
height: 360,
child: ChildWidgetOfBottomSheetYouWantToImplement.....
showModalBottomSheet(
context: context,
backgroundColor: Colors.transparent,
builder: (BuildContext bc){
return Container(
height: 430,
child: BottomSheetWidget(name, test, images),
);
}
);
Full Summary:
Refrence
Click here
Top comments (0)