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

It is not working #156

Open
hbatalhaStch opened this issue Apr 16, 2024 · 1 comment
Open

It is not working #156

hbatalhaStch opened this issue Apr 16, 2024 · 1 comment
Labels
bug Something isn't working needs more info

Comments

@hbatalhaStch
Copy link

I just installed this package and I this example but it is not working.
The example:

import 'package:flutter_keyboard_visibility/flutter_keyboard_visibility.dart';
import 'dart:async';

late StreamSubscription<bool> keyboardSubscription;

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

  var keyboardVisibilityController = KeyboardVisibilityController();
  // Query
  print('Keyboard visibility direct query: ${keyboardVisibilityController.isVisible}');

  // Subscribe
  keyboardSubscription = keyboardVisibilityController.onChange.listen((bool visible) {
    print('Keyboard visibility update. Is visible: $visible');
  });
}

@override
void dispose() {
  keyboardSubscription.cancel();
  super.dispose();
}

I click on a textfield to bring up the keyboard but but the onChange listen callback is not called.

@maige-app maige-app bot added bug Something isn't working needs more info labels Apr 16, 2024
Copy link

maige-app bot commented Apr 16, 2024

Hi there! It looks like you're encountering an issue with the keyboard visibility not triggering as expected. To help us better understand and address the problem, could you please provide more details?

  • Which version of the flutter_keyboard_visibility package are you using?
  • What platform(s) (iOS/Android/Web) are you experiencing this issue on?
  • Have you tried running the example on a different platform or device to see if the issue persists?

Any additional information or steps to reproduce the issue would be greatly appreciated. Thank you for bringing this to our attention!

From Maige. How's my driving?

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

1 participant