keyboard_detection 0.2.0 copy "keyboard_detection: ^0.2.0" to clipboard
keyboard_detection: ^0.2.0 copied to clipboard

outdated

This plugin gives you an easy way to detect if the keyboard is visible or not.

0.2.0 #

  • Added 3 variables to KeyboardDetectionController to get the current state of the keyboard visibility:
    • currentState: the current state of the keyboard visibility return in bool? (null: unknown, true: visible, false: hidden).
    • keyboardState: the current state of the keyboard visibility return in enum KeyboardState (unknown: unknown, visible: visible, hidden: hidden).
    • asStream to listen for keyboard visibility changing events in bool.

0.1.0 #

  • Bug fixed: Now keyboard visibility only notify one time when changed.

  • [BREAKING CHANGE]

    • Before:
    @override
    Widget build(BuildContext context) {
    return MaterialApp(
        home: KeyboardDetection(
            timerDuration: const Duration(milliseconds: 10),
            onChanged: (value) {
                print('Is Keyboard Opened: $value');
                setState(() {
                isKeyboardOpened = value;
                });
            },
            child:
    
    • Now:
    @override
    Widget build(BuildContext context) {
    return MaterialApp(
        home: KeyboardDetection(
            controller: KeyboardDetectionController(
                timerDuration: const Duration(milliseconds: 10),
                onChanged: (value) {
                    print('Is Keyboard Opened: $value');
                    setState(() {
                        isKeyboardOpened = value;
                    });
                },
            ),
            child:
    

0.0.1+1 #

  • Initial release.
15
likes
0
pub points
87%
popularity

Publisher

verified publisherlamnhan.dev

This plugin gives you an easy way to detect if the keyboard is visible or not.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on keyboard_detection