jamesblasco / modal_bottom_sheet

Flutter | Create advanced modal bottom sheets. Material, Cupertino or your own style
https://pub.dev/packages/modal_bottom_sheet
MIT License
1.85k stars 464 forks source link

TextField #302

Open ismaelalba opened 1 year ago

ismaelalba commented 1 year ago

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 😎

image image

codetinker commented 1 year ago

I have the same problem. Still finding solution..

codetinker commented 1 year ago

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, ), );

berdibekovaG commented 1 year ago

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?