Keyboard not being detected. MediaQuery.of(context).viewInsets.bottom always returns 0.0
I've had this issue recently. Do you have fullscreen set to true? If fullscreen is enabled, MediaQuery.viewInsets.bottom will return 0.0. Since you mentioned the problem only occurs in android, It's possible you set the fullscreen property in the native android files. Check styles.xml
Other way to remove fullscreen from the app is
SystemChrome.setEnabledSystemUIOverlays() in flutter page.
One more thing you might want to check is
resizeToAvoidBottomPadding: to false in Scaffold.
The issue has been raised in Flutter issues as well: https://github.com/flutter/flutter/issues/25050