-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package produces build error #223
Comments
you have to upgrade the flutter to last version |
If you are on flutter < 3.7.3 and don't need to use latest version, use v4.1.0. |
Im using flutter 3.3.3 - Dart version 2.18.2 and I keep getting the error. I already tried the pub versions 4.2.0, 4.1.0, 4.0.1 and 4.0.0 `: Error: A value of type 'OverlayState?' can't be assigned to a variable of type 'OverlayState' because 'OverlayState?' is nullable and 'OverlayState' isn't.
`: Error: Method 'getOffsetToReveal' cannot be called on 'RenderAbstractViewport?' because it is potentially null.
|
I downgraded the package version to keyboard_actions: ^3.4.7. So try downgrade it until it works. |
../../../flutter/usedVersion/.pub-cache/hosted/pub.dartlang.org/keyboard_actions-4.2.0/lib/keyboard_actions.dart:322:31: Error: A value of type 'OverlayState?' can't be assigned to a variable of type 'OverlayState' because 'OverlayState?' is nullable and 'OverlayState' isn't.
OverlayState os = Overlay.of(context);
^
../../../flutter/usedVersion/.pub-cache/hosted/pub.dartlang.org/keyboard_actions-4.2.0/lib/external/keyboard_avoider/bottom_area_avoider.dart:194:27: Error: Method 'getOffsetToReveal' cannot be called on 'RenderAbstractViewport?' because it is potentially null.
Try calling using ?. instead.
final offset = viewport.getOffsetToReveal(object, 1.0).offset + overscroll;
The text was updated successfully, but these errors were encountered: