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.

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: 526
 
 

COMMENTS
 
No comments yet. Be the first to comment who you are.
 
 
 
 
 
 
 
WRITE COMMENT
 
 
Your Name :
 
 
 
E-mail :
 
 
 
Your Message :
 
 
 
 
 
 
 
This project : ASP.NET MVC , RAZOR, Entity Framework , CSS , HTML , JQUERY(2.0.2) , AJAX the C# side-tier architecture was developed with logic.
 
Yukarı Çık