keyboard_detection 0.4.2
keyboard_detection: ^0.4.2 copied to clipboard
This plugin gives you an easy way to detect if the keyboard is visible or not using bottom view insets.
0.4.2 #
- Changed
minDifferentSizedefault value back to 0 to avoid laggy issue.
0.4.1 #
- Fixed issue when using
pushAndRemoveUntilto navigate to another page.
0.4.0 #
- [BREAKING CHANGE]: Removed
timerDurationinKeyboardDetectionController. - The
minDifferentSizenow works correctly and responses right after the bottom view insets satified the condition. Default value now is set to 100. - Added
keyboardSizeandisKeyboardSizeLoadedtoKeyboardDetectionControllerto get the keyboard size.
0.3.0 #
- Compatible with Flutter 3.0.
- Changed from using
TimertodidChangeMetricsfor listening to the changing of the bottom view insets. - Added
minDifferentSizeparameter toKeyboardDetectionController, now you can set the minimum changed of size between two checks to detect the keyboard visibility. Default value is 0. - [Deprecated]: Don't need to use
timerDurationinKeyboardDetectionControllersince this version.
0.2.1 #
- Auto close usused resources after dispose.
0.2.0 #
- Added 3 variables to
KeyboardDetectionControllerto get the current state of the keyboard visibility:currentState: the current state of the keyboard visibility return inbool?(null: unknown,true: visible,false: hidden).keyboardState: the current state of the keyboard visibility return in enumKeyboardState(unknown: unknown,visible: visible,hidden: hidden).asStreamto listen for keyboard visibility changing events inbool.
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.