mobile_keyboard_visibility

获取键盘高度

Getting Started

demo

dependencies:
  mobile_keyboard_visibility: ^0.0.6
@override
void initState() {
super.initState();

_mobileKeyboardVisibilityPlugin.mobileKeyBoardListener(onHeight: (sender) {
  setState(() {
    height = sender;
  });
}, onShow: (sender) {
  setState(() {
    setState(() {
      status = sender;
    });
  });
});
}

@override
void dispose() {
_mobileKeyboardVisibilityPlugin.dispose();
super.dispose();
}

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.