xuty пре 2 година
родитељ
комит
7e5b3b1dce
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      lib/src/ui/keyboard_visibility.dart

+ 1 - 1
lib/src/ui/keyboard_visibility.dart

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