modal_bottom_sheet icon indicating copy to clipboard operation
modal_bottom_sheet copied to clipboard

Getting covered by keyboard

Open subhambiswas377flutternml opened this issue 2 years ago • 3 comments

Modal bottom sheet is getting covered by soft keyboard when there is a text field in it . How to solve that ?

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

codetinker avatar Dec 16 '22 21:12 codetinker

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

hi! it is works at flutter >=3.10.5?

berdibekovaG avatar Aug 03 '23 07:08 berdibekovaG

@berdibekovaG Yes I am currently using it on flutter 3.10.6

Maatteogekko avatar Aug 03 '23 08:08 Maatteogekko