It worked for me ...
Add this first
final bottom = MediaQuery.of(context).viewInsets.bottom;
Then use SingleChildScrollView () to wrap around the main widget (whatever you use, e.g. Column, ListView, etc.) like this ...
You need to flip: true
Widget build{ return Scaffold( body: SingleChildScrollView( reverse: true; child: Container(...
You also need these two lines of code for the scaffold.
return Scaffold( resizeToAvoidBottomInset: false, resizeToAvoidBottomPadding: false, body: SingleChildScrollView(...
and finally specify a โbottomโ for your EdgeInsets.
body: SingleChildScrollView( reverse: true, child: Padding( padding: EdgeInsets.only(bottom: bottom), child: Container(...
source share