|
@@ -36,7 +36,7 @@ class KeyboardVisibiltyState extends State<KeyboardVisibilty>
|
|
|
|
|
|
|
|
@override
|
|
@override
|
|
|
void didChangeMetrics() {
|
|
void didChangeMetrics() {
|
|
|
- final bottomInset = window.viewInsets.bottom;
|
|
|
|
|
|
|
+ final bottomInset = View.of(context).viewInsets.bottom;
|
|
|
|
|
|
|
|
if (bottomInset != _lastBottomInset) {
|
|
if (bottomInset != _lastBottomInset) {
|
|
|
if (bottomInset > 0) {
|
|
if (bottomInset > 0) {
|