Skip to content
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

onChange event not fired #52

Open
spajdo opened this issue Mar 3, 2020 · 3 comments
Open

onChange event not fired #52

spajdo opened this issue Mar 3, 2020 · 3 comments

Comments

@spajdo
Copy link

spajdo commented Mar 3, 2020

Hi. This plugin is not working for me.
What I did wrong?
My code is:

@override
void initState() {
  super.initState();

  KeyboardVisibilityNotification().addNewListener(
    onChange: (bool visible) {
      print(visible);
    },
  );
}

And flutter doctor -v:

    • Flutter version 1.12.13+hotfix.8 at /home/spajdo/DevTools/flutter
    • Framework revision 0b8abb4724 (3 weeks ago), 2020-02-11 11:44:36 -0800
    • Engine revision e1e6ced81d
    • Dart version 2.7.0

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /home/spajdo/DevTools/android-sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-R, build-tools 28.0.3
    • ANDROID_HOME = /home/spajdo/DevTools/android-sdk
    • Java binary at: /home/spajdo/DevTools/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b16-5323222)
    • All Android licenses accepted.

[✓] Android Studio (version 3.4)
    • Android Studio at /home/spajdo/DevTools/android-studio
    • Flutter plugin version 43.0.2
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b16-5323222)

[✓] IntelliJ IDEA Ultimate Edition (version 2019.3)
    • IntelliJ at /snap/intellij-idea-ultimate/204
    • Flutter plugin version 43.0.3
    • Dart plugin version 193.6494.35

[✓] Connected device (1 available)
    • motorola one zoom • ZY226LTBBQ • android-arm64 • Android 9 (API 28)

• No issues found!

I dont know what can I do to solve this problem.

@muhammetasan
Copy link

I am also having this issue. But it is only reproducible on Emulator. On real device everything is working fine.

@alevittoria
Copy link

Same problem but with a real device, Samsung Note 8

@sanchan
Copy link

sanchan commented May 27, 2020

Ok, I tried previous versions and I had to stick with 0.5.2. The other versions:

# 0.5.6 doesn't work
# 0.5.5 crashes
# 0.5.4 crashes
# 0.5.3 doesn't work

flutter doctor -v:

[✓] Flutter (Channel unknown, v1.12.13+hotfix.9, on Linux, locale en_GB.UTF-8)
    • Flutter version 1.12.13+hotfix.9 at /home/sanchan/Documents/flutter
    • Framework revision f139b11009 (8 weeks ago), 2020-03-30 13:57:30 -0700
    • Engine revision af51afceb8
    • Dart version 2.7.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants