Open andreskiu opened 5 years ago
This is de Code i'm executing:
FormField( builder: (state) { return FlatButton( child: Text("OPEN BOTTOM SHEET"), onPressed: () { showModalBottomSheet( context: context, builder: (context) { // return Text('HELLO WORLD'); return DatePickerWidget(); }); }, ); }, ),
If i replace the DatePickerWidget with a simple Text, the white bottom sheet adjust to the content perfectly and no white space is between the text and the bottom of the screen
This is de Code i'm executing:
FormField( builder: (state) { return FlatButton( child: Text("OPEN BOTTOM SHEET"), onPressed: () { showModalBottomSheet( context: context, builder: (context) { // return Text('HELLO WORLD'); return DatePickerWidget(); }); }, ); }, ),
If i replace the DatePickerWidget with a simple Text, the white bottom sheet adjust to the content perfectly and no white space is between the text and the bottom of the screen