Is it possible to show the Android Snackbar above the keyboard (as in Y coordinate, not layering)? The Snackbar currently gets hidden if the keyboard is shown, which is an undesirable behavior.
If you nest your layout in a ScrollView, the snackbar will appear on top of the keyboard. This is because the view will resize to take up only the available space above the keyboard. And, of course, your View will also be scroll-able if necessary at any time, while the keyboard is shown or not.
Add snack bar in this way, place a Container @ content argument, with padding from bottom of Keyboard size.
SnackBar snackBar =
SnackBar(
content: Container(
padding: EdgeInsets.only( bottom:
MediaQuery.of(context).viewInsets.bottom),
child: Text('Please add your quote !!!')),
duration: Duration(milliseconds: 800),
);
// Add this given line in function body where to show snack bar
ScaffoldMessenger.of(context.showSnackBar(snackBar);