modal_bottom_sheet
modal_bottom_sheet copied to clipboard
TextField
Hello man, I am very impressed about your modal_bottom_sheet package, it is awesome and super easy to use, congrats!
I want to write in a TextField, but when the keyboard appears, it cover the entire bottom sheet. I dont know if it is my fault, or is simply a little improvement for your package.
Thank you mate 😎

I have the same problem. Still finding solution..
I just solved it. Just add padding.. this is my code
showMaterialModalBottomSheet( context: context, bounce: true, builder: (context) => SingleChildScrollView( controller: ModalScrollController.of(context), padding: EdgeInsets.only(bottom: MediaQuery.of(context).viewInsets.bottom), child: child, ), );
I just solved it. Just add padding.. this is my code
showMaterialModalBottomSheet( context: context, bounce: true, builder: (context) => SingleChildScrollView( controller: ModalScrollController.of(context), padding: EdgeInsets.only(bottom: MediaQuery.of(context).viewInsets.bottom), child: child, ), );
is it works at flutter 3.10.5?