CATEGORIES
>>
Dart(2)
>>
Errors(5)
>>
Android(11)
>>
Errors(1)
>>
Errors(2)
>>
Windows 8(3)
>>
iPhone7(1)
>>
Errors(4)
>>
Html(1)
RECOMMENDED SITES
SingleChildScrollView full scroll when keyboard open
For this we are using a MediaQuery.of(context).viewInsets.bottom;
Add Padding witth "EdgeInsets.only(bottom: MediaQuery.of(context).viewInsets.bottom)," before SingleChildScrollView widget.
Add Padding witth "EdgeInsets.only(bottom: MediaQuery.of(context).viewInsets.bottom)," before SingleChildScrollView widget.
Padding(
padding: EdgeInsets.only(bottom: MediaQuery.of(context).viewInsets.bottom),
child: SingleChildScrollView(
child: Column(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.center,
children: [
SizedBox(height: 60,),
Container(
padding: EdgeInsets.symmetric(
vertical: 30, horizontal: 20),
color: Colors.red,
margin: EdgeInsets.all(5),
child: Text(
'BLA BLA',
),
),
],
),
),
);
Author: Engin ATALAY
Date: 6.02.2021 17:43:59
View Count: 493
COMMENTS
No comments yet. Be the first to comment who you are.