Question : flutter rounded bottom sheet
Answered by : bommilie
void startAddNewMoodCheckin(BuildContext ctx) { showModalBottomSheet( shape: RoundedRectangleBorder( //the rounded corner is created here borderRadius: BorderRadius.circular(10.0), ), context: ctx, builder: (_) { return Container( child: Text("This is a modal sheet"), ); }); }
Source : | Last Update : Sun, 07 Mar 21
Question : Rounded Bottom Sheet Flutter
Answered by : puzzled-parrot-9is2xglt4ot0
void _modalBottomSheetMenu(){ showModalBottomSheet( context: context, builder: (builder){ return new Container( height: 350.0, color: Colors.transparent, //could change this to Color(0xFF737373), //so you don't have to change MaterialApp canvasColor child: new Container( decoration: new BoxDecoration( color: Colors.white, borderRadius: new BorderRadius.only( topLeft: const Radius.circular(10.0), topRight: const Radius.circular(10.0))), child: new Center( child: new Text("This is a modal sheet"), )), ); } ); }
Source : https://stackoverflow.com/questions/50376200/how-to-create-a-modal-bottomsheet-with-circular-corners-in-flutter | Last Update : Mon, 17 Jan 22