How to use Bottomsheet persistently in Flutter?

In flutter if you want to calling the bottomsheet persistently then please follow this pattern -


First like you want to bottomsheet on button pressed the just

   onPressed:(){

_showBottomSheet(context);

}


void _showBottomSheet(context){
showBottomSheet(context:context,
builder:(BuildContext context){
return Column(){
children:<Widget>[
],
},
},
}

Comments