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

Exception thrown when listening to keyboardVisibilityController.onChange #148

Open
Requieem opened this issue Dec 12, 2023 · 1 comment
Open
Labels
bug Something isn't working needs more info

Comments

@Requieem
Copy link

Describe the bug
When running the app with a .listen call to keyboardVisibilityController.onChange, this exception is thrown:

════════ Exception caught by services library ══════════════════════════════════
The following MissingPluginException was thrown while activating platform stream on channel flutter_keyboard_visibility:
MissingPluginException(No implementation found for method listen on channel flutter_keyboard_visibility)

When the exception was thrown, this was the stack:
#0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:320:7)
platform_channel.dart:320

#1 EventChannel.receiveBroadcastStream. (package:flutter/src/services/platform_channel.dart:664:9)
platform_channel.dart:664

════════════════════════════════════════════════════════════════════════════════

To Reproduce
Steps to reproduce the behavior:

  1. Create new flutter project
  2. Install the package
  3. Try to listen to keyboardVisibilityController.onChange

Expected behavior
I would expect the exception not to be thrown and the listener to react accordingly.

Info (please complete the following information):
flutter_keyboard_visibility version:

5.4.1

Reproducible on platforms (Android, iOS, etc):

Android and iOS simulators/physical

flutter doctor output:

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.16.2, on Microsoft Windows [Version 10.0.19045.3693], locale en-CH)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.7.2)
[√] Android Studio (version 2022.3)
[√] VS Code (version 1.85.0)
[√] Connected device (4 available)
[√] Network resources

@Requieem Requieem added the bug Something isn't working label Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs more info
Projects
None yet
Development

No branches or pull requests

2 participants
@Requieem and others